Repository navigation
Commit d3f10b4
committed
fix(hydration): clear inPlace for fragment bodies so parkPast records the arm tail
A fragment body adopted in renderInPlace never cleared the inPlace sentinel,
so renderInPlace returned false, parkPast never ran, and renderAdoptedArm
returned null for the parked cursor. discardArmTail then kept the extra
server nodes from a longer server arm on screen.
Clear inPlace in the fragment match path of adopt(), add parkHere() for
callers that only need to record armTail at the cursor renderInPlace already
parked, and advance the cursor past all fragment roots (including multi-root
fragments via inPlacePark).1 parent 2828027 commit d3f10b4
3 files changed
Lines changed: 81 additions & 3 deletions
File tree
- packages/octane
- src
- tests/hydration
- _fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11888 | 11888 | | |
11889 | 11889 | | |
11890 | 11890 | | |
11891 | | - | |
| 11891 | + | |
11892 | 11892 | | |
11893 | 11893 | | |
11894 | 11894 | | |
| |||
18831 | 18831 | | |
18832 | 18832 | | |
18833 | 18833 | | |
| 18834 | + | |
| 18835 | + | |
| 18836 | + | |
| 18837 | + | |
| 18838 | + | |
| 18839 | + | |
18834 | 18840 | | |
18835 | 18841 | | |
18836 | 18842 | | |
| |||
19210 | 19216 | | |
19211 | 19217 | | |
19212 | 19218 | | |
| 19219 | + | |
19213 | 19220 | | |
19214 | 19221 | | |
19215 | 19222 | | |
19216 | 19223 | | |
19217 | 19224 | | |
19218 | 19225 | | |
19219 | 19226 | | |
19220 | | - | |
| 19227 | + | |
| 19228 | + | |
| 19229 | + | |
| 19230 | + | |
| 19231 | + | |
19221 | 19232 | | |
19222 | 19233 | | |
19223 | 19234 | | |
| |||
19676 | 19687 | | |
19677 | 19688 | | |
19678 | 19689 | | |
| 19690 | + | |
| 19691 | + | |
| 19692 | + | |
| 19693 | + | |
| 19694 | + | |
| 19695 | + | |
| 19696 | + | |
| 19697 | + | |
| 19698 | + | |
| 19699 | + | |
| 19700 | + | |
| 19701 | + | |
| 19702 | + | |
19679 | 19703 | | |
19680 | 19704 | | |
19681 | 19705 | | |
| |||
20298 | 20322 | | |
20299 | 20323 | | |
20300 | 20324 | | |
| 20325 | + | |
| 20326 | + | |
| 20327 | + | |
| 20328 | + | |
| 20329 | + | |
| 20330 | + | |
| 20331 | + | |
| 20332 | + | |
| 20333 | + | |
| 20334 | + | |
| 20335 | + | |
| 20336 | + | |
| 20337 | + | |
20301 | 20338 | | |
20302 | 20339 | | |
20303 | 20340 | | |
| |||
32413 | 32450 | | |
32414 | 32451 | | |
32415 | 32452 | | |
32416 | | - | |
| 32453 | + | |
32417 | 32454 | | |
32418 | 32455 | | |
32419 | 32456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
240 | 267 | | |
241 | 268 | | |
242 | 269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
257 | 270 | | |
258 | 271 | | |
259 | 272 | | |
| |||
277 | 290 | | |
278 | 291 | | |
279 | 292 | | |
| 293 | + | |
280 | 294 | | |
281 | 295 | | |
282 | 296 | | |
| |||
0 commit comments