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 e5196e5 commit 0f25fc0Copy full SHA for 0f25fc0
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 = prevStore ? prevStore._sub : Signal.prototype._subscribe;
+ nextStore._sub = prevStore ? prevStore._sub : realSubscribe;
117
Signal.prototype._subscribe = function (this: Signal, node: any) {
118
nextStore._subscribers.push({ signal: this, node });
119
};
@@ -128,7 +128,7 @@ function finishComponentEffect(
128
129
endEffect: () => void
130
131
- Signal.prototype._subscribe = this._sub;
+ Signal.prototype._subscribe = prevStore ? prevStore._sub : realSubscribe;
132
endEffect();
133
currentStore = prevStore;
134
}
0 commit comments