This pull request's diff hasn't been prepared yet. Log in with GitHub to have us prepare it for review.

[Fizz] Fix truncated prerender output under backpressure #37901

Merged
unstubbable opened 2:24pm on October 19, 2026 wanted to merge 72 Ξ” into facebook/react main from
hl/fix-fizz-prerender-truncation-on-back-pressure
unstubbable authored
of work during October 19
Diff Delta:
72
About 65 Diff Delta/hour
Classified as:  Bug Fix

unstubbable's Description of Work

An aborted prerender can finish all tasks while partial output remains queued. If a Node stream applies backpressure, Fizz can close it before it flushes the remaining boundaries. This bug predates #37876 and also affects initial prerenders.

Fizz now waits for partialBoundaries to empty before it closes the destination. The regression test forces backpressure with highWaterMark: 1 and verifies that push() returns false. Without the fix, the stream emits the first boundary's partial content and closes before it emits the second's.

Building updated commit group diff...
2 total changed files
Loading changes...
Loading changes...