Skip to content

Commit f6efbb9

Browse files
committed
fix(runtime): skip flushed members during staged reveal group expansion
The expansion loop in stagedRevealGroup walks all of HELD_TRANSITIONS to find peers that share batches, but did not skip members already in the flushed set. After flushStagedReveals retries a group (deleting its TRANSITION_HOLDERS entries), those members remain in HELD_TRANSITIONS and look unbounded (peer === undefined). A subsequent scan in the same flushStagedRevealsIfReady call could absorb them into an unrelated group, either double-committing a view-transition-deferred reveal or poisoning a legitimate group (failing the all-staged check).
1 parent 6541257 commit f6efbb9

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
@@ -511,7 +511,7 @@ export function stagedRevealGroup(flushed: Set<TrySlot>): TrySlot[] | null {
511511
if (hold === undefined) unbounded = true;
512512
else for (const batch of hold.batches) batches.add(rootTransitionBatch(batch));
513513
for (const other of HELD_TRANSITIONS) {
514-
if (group.includes(other)) continue;
514+
if (group.includes(other) || flushed.has(other)) continue;
515515
const peer = TRANSITION_HOLDERS?.get(other);
516516
let shares = unbounded || peer === undefined;
517517
if (!shares)

0 commit comments

Comments
 (0)