diff --git a/packages/lib/src/dom.ts b/packages/lib/src/dom.ts index 3b82e743..df205b12 100644 --- a/packages/lib/src/dom.ts +++ b/packages/lib/src/dom.ts @@ -218,9 +218,6 @@ function commitWork(ctx: GlobalContext, vNode: VNode) { continue } - n.effectTag = undefined - n.prev = { ...n, prev: undefined } - if (n.child) { stack.push(n.child) } @@ -236,6 +233,9 @@ function commitWork(ctx: GlobalContext, vNode: VNode) { } ctx.scheduler.queueCurrentNodeEffects() } + + n.effectTag = undefined + n.prev = { ...n, prev: undefined } } }