Repository navigation
Commit 619671f
committed
fix(hydration): loop past consecutive close markers in discardArmTail
When a rebuilt @Try is nested inside another @Try (or child slot), the
cursor parks on the inner close marker. A single getNextSibling hop
lands on the outer close marker, so isOpen fails and the unclaimed tail
stays in the document.
Change the single if-step to a while loop that skips past consecutive
close markers (stopping at `end` to stay in bounds), so the open-tail
check sees the correct node regardless of nesting depth.1 parent 379a2b9 commit 619671f
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19407 | 19407 | | |
19408 | 19408 | | |
19409 | 19409 | | |
19410 | | - | |
19411 | | - | |
19412 | | - | |
| 19410 | + | |
| 19411 | + | |
| 19412 | + | |
| 19413 | + | |
19413 | 19414 | | |
19414 | 19415 | | |
19415 | 19416 | | |
| |||
19423 | 19424 | | |
19424 | 19425 | | |
19425 | 19426 | | |
19426 | | - | |
| 19427 | + | |
19427 | 19428 | | |
19428 | 19429 | | |
19429 | 19430 | | |
| |||
0 commit comments