We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 180eab1 commit f93f990Copy full SHA for f93f990
1 file changed
packages/react/runtime/src/index.ts
@@ -113,7 +113,7 @@ function startComponentEffect(
113
prevStore: EffectStore | undefined,
114
nextStore: EffectStore
115
) {
116
- nextStore._sub = Signal.prototype._subscribe;
+ nextStore._sub = prevStore ? prevStore._sub : Signal.prototype._subscribe;
117
Signal.prototype._subscribe = function (this: Signal, node: any) {
118
nextStore._subscribers.push({ signal: this, node });
119
};
0 commit comments