Skip to content

Commit 499af49

Browse files
committed
chore: also unset prevScope on off
1 parent d92c37a commit 499af49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/reactivity/src/effectScope.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export class EffectScope {
122122
off(): void {
123123
if (this._on > 0 && --this._on === 0) {
124124
activeEffectScope = this.prevScope
125+
this.prevScope = undefined
125126
}
126127
}
127128

0 commit comments

Comments
 (0)