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 1151f46 commit 69e6c7fCopy full SHA for 69e6c7f
packages/react/runtime/src/index.ts
@@ -108,7 +108,7 @@ function startComponentEffect(
108
prevStore: EffectStore | undefined,
109
nextStore: EffectStore
110
) {
111
- nextStore._sub = Signal.prototype._subscribe;
+ nextStore._sub = prevStore ? prevStore._sub : Signal.prototype._subscribe;
112
Signal.prototype._subscribe = function (this: Signal, node: any) {
113
nextStore._subscribers.push({ signal: this, node });
114
};
0 commit comments