Skip to content

Commit 69e6c7f

Browse files
authored
Update packages/react/runtime/src/index.ts
1 parent 1151f46 commit 69e6c7f

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
@@ -108,7 +108,7 @@ function startComponentEffect(
108108
prevStore: EffectStore | undefined,
109109
nextStore: EffectStore
110110
) {
111-
nextStore._sub = Signal.prototype._subscribe;
111+
nextStore._sub = prevStore ? prevStore._sub : Signal.prototype._subscribe;
112112
Signal.prototype._subscribe = function (this: Signal, node: any) {
113113
nextStore._subscribers.push({ signal: this, node });
114114
};

0 commit comments

Comments
 (0)