Skip to content

Commit 9f95d3e

Browse files
committed
fix: initialize first=true for request-only holds in dropTransitionRender
A request-only dropTransitionRender (no folded batches, only a root request at transition priority) left first=false because the batch loop was empty. This caused renderDroppedTransaction to skip non-urgent origins, stranding sibling startTransition work and leaving dropped useSyncExternalStore snapshots uncommitted until the held request retried.
1 parent 13d07f4 commit 9f95d3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/octane/src/runtime/transitions.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ export function dropTransitionRender(transaction: RootRenderTransaction): boolea
733733
__profileCount(ProfileCounter.ROLLBACK_TRANSITION);
734734
if (TRANSITION_HARVEST !== null)
735735
for (let i = 0; i < TRANSITION_HARVEST.length; i++) TRANSITION_HARVEST[i].taken = false;
736-
let first = false;
736+
let first = request && batches.length === 0;
737737
for (const batch of batches) {
738738
if (!batch.held) first = batch.held = true;
739739
}

0 commit comments

Comments
 (0)