Revert sync abort replay restoration pending a complete fix #37852

Merged
gnoff opened 6:57pm on October 14, 2026 wanted to merge 91 Ξ” into facebook/react main from
jstory/revert-sync-abort-replay
Diff Delta:
91
About 363 Diff Delta/hour
Classified as:  Bug Fix

gnoff's Description of Work

Revert #37710 and #37850 while we revisit how synchronous prerender aborts preserve replay state.

Restoring the aborted task root as a replay point can overlap postpones from child tasks. #37850 suppresses one form of the overlap, but an indexed parent slot can still coexist with a descendant replay node and fail during resumption. This removes the incomplete change so we can address the replay invariants together.

This deliberately restores the behavior reported in #37709: if a prerender abort interrupts a task after it has rendered part of its shell, the later resume can omit that markup. That regression needs a follow-up fix.

This supersedes #37851.

Tests: yarn test ReactDOMFizzStaticBrowser --runInBand and yarn test ReactDOMFizzStaticBrowser --prod --runInBand (34 passed in each mode).

2 total changed files
Loading changes...
Loading changes...
That’s the last hunk
No more diffs beyond this point