diff --git a/packages/reactivity/src/effect.ts b/packages/reactivity/src/effect.ts index 351fc0c2..bb4ed09f 100644 --- a/packages/reactivity/src/effect.ts +++ b/packages/reactivity/src/effect.ts @@ -75,7 +75,7 @@ export class ReactiveEffect { if (!this.active) { return this.fn() } - if (!effectStack.includes(this)) { + if (!effectStack.length || !effectStack.includes(this)) { try { effectStack.push((activeEffect = this)) enableTracking()