Skip to content

Commit 217f16d

Browse files
committed
Ensure we do things correctly in finish effect handoff
1 parent 54f6443 commit 217f16d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react/runtime/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function finishComponentEffect(
123123
prevStore: EffectStore | undefined,
124124
endEffect: () => void
125125
) {
126-
Signal.prototype._subscribe = this._sub;
126+
Signal.prototype._subscribe = prevStore ? prevStore._sub : realSubscribe;
127127
endEffect();
128128
currentStore = prevStore;
129129
}

0 commit comments

Comments
 (0)