Repository navigation
Commit 7f4cb37
committed
fix(hydration): run range-size check on resume when claimFrom is cleared
The fragment range-size check (claimRoots) was guarded by
`cursor !== this.claimFrom`, which short-circuits to true when
claimFrom is null — as it is after endClaim clears it following a
child suspension. This allowed a hole-then-text fragment (no static
element root for fragmentRootMatches to reject) to be adopted over
another component's server range instead of being rebuilt.
Guard the short-circuit with `this.claimFrom !== null` so that when
claimFrom has been cleared, claimRoots always runs. claimRoots
independently identifies range boundaries via liteRanges and returns
true immediately for cursors not at a range start, preserving the
fast path.1 parent 7e61cda commit 7f4cb37
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20475 | 20475 | | |
20476 | 20476 | | |
20477 | 20477 | | |
20478 | | - | |
| 20478 | + | |
| 20479 | + | |
| 20480 | + | |
| 20481 | + | |
| 20482 | + | |
20479 | 20483 | | |
20480 | 20484 | | |
20481 | 20485 | | |
| |||
0 commit comments