Skip to content

Commit f93f990

Browse files
committed
Update packages/react/runtime/src/index.ts
1 parent 180eab1 commit f93f990

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react/runtime/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function startComponentEffect(
113113
prevStore: EffectStore | undefined,
114114
nextStore: EffectStore
115115
) {
116-
nextStore._sub = Signal.prototype._subscribe;
116+
nextStore._sub = prevStore ? prevStore._sub : Signal.prototype._subscribe;
117117
Signal.prototype._subscribe = function (this: Signal, node: any) {
118118
nextStore._subscribers.push({ signal: this, node });
119119
};

0 commit comments

Comments
 (0)