Repository navigation
Commit 27a76c9
committed
fix: sweep rebuilt tail on Hydrate resume for inherited calls
When a component's sole child inherits its range (M3 borrow) and that
child rebuilds a root whose descendant suspends during a <Hydrate>
activation, the server tail after the rebuilt root was never removed.
The first activation's renderClaimed recorded the suspendedClaim for
the wrapper block, but on resume findSuspendedHydrateBlock returned
null (the scope walk couldn't reach the suspended block), so
renderSuspended was never called and the claim was never consumed.
The subsequent re-render path in componentSlotImpl just called
renderBlock without claim management, leaving the rebuilt tail in
the DOM.
Fix: in the componentSlotImpl re-render path, check for a
suspendedClaim on the block before falling through to renderBlock.
When found, re-render the block and then explicitly sweep the
rebuilt tail that the first activation's mismatch left behind.1 parent 7ad462b commit 27a76c9
3 files changed
Lines changed: 65 additions & 2 deletions
File tree
- packages/octane
- src
- tests/hydration
- _fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19378 | 19378 | | |
19379 | 19379 | | |
19380 | 19380 | | |
| 19381 | + | |
| 19382 | + | |
| 19383 | + | |
| 19384 | + | |
| 19385 | + | |
| 19386 | + | |
| 19387 | + | |
| 19388 | + | |
| 19389 | + | |
| 19390 | + | |
| 19391 | + | |
| 19392 | + | |
| 19393 | + | |
| 19394 | + | |
19381 | 19395 | | |
19382 | 19396 | | |
19383 | 19397 | | |
| |||
32994 | 33008 | | |
32995 | 33009 | | |
32996 | 33010 | | |
32997 | | - | |
32998 | | - | |
| 33011 | + | |
| 33012 | + | |
| 33013 | + | |
| 33014 | + | |
| 33015 | + | |
| 33016 | + | |
| 33017 | + | |
32999 | 33018 | | |
33000 | 33019 | | |
33001 | 33020 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
181 | 205 | | |
182 | 206 | | |
183 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
220 | 240 | | |
221 | 241 | | |
222 | 242 | | |
| |||
0 commit comments