Skip to content

Commit 631049b

Browse files
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

File tree

‎packages/octane/src/runtime.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41897,7 +41897,7 @@ function renderBranchSlot(
4189741897
env,
4189841898
);
4189941899
state.block = b;
41900-
state.markerlessBefore = before;
41900+
state.markerlessBefore = contentBefore;
4190141901
try {
4190241902
renderBlock(b);
4190341903
} catch (error) {

0 commit comments

Comments
 (0)