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 54f6443 commit 2f22abeCopy full SHA for 2f22abe
1 file changed
packages/react/runtime/src/index.ts
@@ -108,7 +108,7 @@ function startComponentEffect(
108
prevStore: EffectStore | undefined,
109
nextStore: EffectStore
110
) {
111
- nextStore._sub = prevStore ? prevStore._sub : Signal.prototype._subscribe;
+ nextStore._sub = prevStore ? prevStore._sub : realSubscribe;
112
Signal.prototype._subscribe = function (this: Signal, node: any) {
113
nextStore._subscribers.push({ signal: this, node });
114
};
@@ -123,7 +123,7 @@ function finishComponentEffect(
123
124
endEffect: () => void
125
126
- Signal.prototype._subscribe = this._sub;
+ Signal.prototype._subscribe = prevStore ? prevStore._sub : realSubscribe;
127
endEffect();
128
currentStore = prevStore;
129
}
0 commit comments