Repository navigation
Commit 0e5adf7
committed
fix(hydration): advance cursor past lite-adopted rebuilt root
The new unframed lite path for rebuiltTail cleared the tail marker so
sweepRebuiltTail would not discard the adopted node, but never advanced
the hydration cursor past that root. clone() parks on the adopted node,
and the existing post-body advance only runs when adoptedClose is set.
A later sibling therefore hydrated against the node this lite just
claimed, potentially discarding or moving it.
Track the adopted node as rebuiltOpen and, after the body renders, step
the cursor past it when clone() left it parked there—mirroring the
stepPastRoot advance that componentSlotImpl already performs for full
unframed single-root components.1 parent 9f28db5 commit 0e5adf7
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11660 | 11660 | | |
11661 | 11661 | | |
11662 | 11662 | | |
| 11663 | + | |
| 11664 | + | |
| 11665 | + | |
11663 | 11666 | | |
11664 | 11667 | | |
11665 | 11668 | | |
| |||
11704 | 11707 | | |
11705 | 11708 | | |
11706 | 11709 | | |
| 11710 | + | |
11707 | 11711 | | |
11708 | 11712 | | |
11709 | 11713 | | |
| |||
11775 | 11779 | | |
11776 | 11780 | | |
11777 | 11781 | | |
| 11782 | + | |
| 11783 | + | |
11778 | 11784 | | |
11779 | 11785 | | |
11780 | 11786 | | |
| |||
0 commit comments