dillon1000/react

Commit

[Flight Reply] Encode ReadableStream and AsyncIterables (#28893)

Same as #28847 but in the other direction.

Like other promises, this doesn't actually stream in the outgoing
direction. It buffers until the stream is done. This is mainly due to
our protocol remains compatible with Safari's lack of outgoing streams
until recently.

However, the stream chunks are encoded as separate fields and so does
support the busboy streaming on the receiving side.
Browse files
Changed paths4 files
First-parent comparison
M packages/react-client/src/ReactFlightReplyClient.js ModifiedM packages/react-server-dom-webpack/src/__tests__/ReactFlightDOMReply-test.js ModifiedM packages/react-server-dom-webpack/src/__tests__/ReactFlightDOMReplyEdge-test.js ModifiedM packages/react-server/src/ReactFlightReplyServer.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…