Repository navigation
Commit 631049b
committed
fix: store contentBefore in markerlessBefore for hydrating branch retry
A hydrating markerless arm computes contentBefore from the cursor, which
differs from the static before when the server left extra siblings at the
cursor. The first mount's success and error paths already pass contentBefore
to finalizeMarkerlessBranch, but state.markerlessBefore was storing the
static before. An incomplete mount that skipped finalization left that stale
value for the same-branch retry and branch-change abort paths, which then
computed wrong content bounds or swept the wrong range.
Store contentBefore instead. When cursor is null (non-hydration),
contentBefore === before so this is a no-op for the common path.1 parent 31429b5 commit 631049b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41897 | 41897 | | |
41898 | 41898 | | |
41899 | 41899 | | |
41900 | | - | |
| 41900 | + | |
41901 | 41901 | | |
41902 | 41902 | | |
41903 | 41903 | | |
| |||
0 commit comments