Repository navigation
Commit 58aaf77
committed
fix(hydration): walk past close markers in discardArmTail
Some slots (@Try, deopt lists) park the hydration cursor on their
close marker rather than advancing past the outer range. When
discardArmTail later inspects the cursor, a close marker caused
the isOpen check to fail, skipping leftover server content.
Walk past consecutive close markers before evaluating whether the
cursor reached unclaimed tail. Each close marker belongs to a
finished claimed block, so what follows is definitively unclaimed.
Add IfTryThenTail fixture covering a branch arm whose last element
is a @Try boundary with extra server content after it.1 parent 639dabe commit 58aaf77
3 files changed
Lines changed: 55 additions & 2 deletions
File tree
- packages/octane
- src
- tests/hydration
- _fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19358 | 19358 | | |
19359 | 19359 | | |
19360 | 19360 | | |
| 19361 | + | |
| 19362 | + | |
| 19363 | + | |
| 19364 | + | |
| 19365 | + | |
19361 | 19366 | | |
19362 | 19367 | | |
19363 | | - | |
19364 | | - | |
| 19368 | + | |
| 19369 | + | |
| 19370 | + | |
| 19371 | + | |
| 19372 | + | |
| 19373 | + | |
| 19374 | + | |
| 19375 | + | |
19365 | 19376 | | |
19366 | 19377 | | |
19367 | 19378 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
125 | 152 | | |
126 | 153 | | |
127 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
144 | 159 | | |
145 | 160 | | |
146 | 161 | | |
| |||
0 commit comments