Skip to content

Commit

Permalink
lib.Scheduler - prevent hydrationStack pop() when renderMode !== "hyd…
Browse files Browse the repository at this point in the history
…rate"
  • Loading branch information
LankyMoose committed Jul 1, 2024
1 parent e983578 commit 8172fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lib/src/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export class Scheduler {
}

nextNode = nextNode.parent
if (nextNode?.dom) {
if (renderMode.current === "hydrate" && nextNode?.dom) {
hydrationStack.pop()
childIndexStack.pop()
}
Expand Down

0 comments on commit 8172fe2

Please sign in to comment.