dillon1000/react

Commit

[Flight] Move around the Server side a bit (#17251)

* Rename ReactFlightStreamer -> ReactFlightServer

* Unify Browser/Node stream tests into one file and use the client reader

* Defer to the actual ReactDOM for HTML rendering for now

This will need to use a variant of Fizz to do inline SSR in Flight.
However, I don't want to build the whole impl right now but also don't
want to exclude the use case yet. So I outsource it to the existing
renderer. Ofc, this doesn't work with Suspense atm.
Browse files
Changed paths15 files
First-parent comparison
M fixtures/flight-browser/index.html ModifiedA packages/react-dom/src/__tests__/ReactFlightDOM-test.js AddedM packages/react-dom/src/__tests__/ReactFlightDOMBrowser-test.js ModifiedD packages/react-dom/src/__tests__/ReactFlightDOMNode-test.js DeletedM packages/react-dom/src/server/ReactDOMServerFormatConfig.js ModifiedM packages/react-dom/src/server/flight/ReactFlightDOMServerNode.js ModifiedM packages/react-noop-renderer/src/ReactNoopFlightServer.js ModifiedM packages/react-server/flight.inline-typed.js ModifiedM packages/react-server/flight.inline.dom-browser.js ModifiedM packages/react-server/flight.inline.dom.js ModifiedM packages/react-server/flight.js ModifiedR packages/react-server/src/ReactFlightStreamer.js →packages/react-server/src/ReactFlightServer.js RenamedM packages/react-server/src/forks/ReactServerFormatConfig.custom.js ModifiedM scripts/rollup/bundles.js ModifiedM scripts/rollup/modules.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…