Skip to content

Commit

Permalink
dom.commitWork - fix component lifecycle hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
LankyMoose committed Apr 2, 2024
1 parent 0efef0c commit d75b33a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/lib/src/dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -236,6 +233,9 @@ function commitWork(ctx: GlobalContext, vNode: VNode) {
}
ctx.scheduler.queueCurrentNodeEffects()
}

n.effectTag = undefined
n.prev = { ...n, prev: undefined }
}
}

Expand Down

0 comments on commit d75b33a

Please sign in to comment.