dillon1000/react

Commit

[Fizz/Flight] Remove reentrancy hack (#22446)

* Remove reentrant check from Fizz/Flight

* Make startFlowing explicit in Flight

This is already an explicit call in Fizz. This moves flowing to be explicit.

That way we can avoid calling it in start() for web streams and therefore
avoid the reentrant call.

* Add regression test

This test doesn't actually error due to the streams polyfill not behaving
like Chrome but rather according to spec.

* Update the Web Streams polyfill

Not that we need this but just in case there are differences that are fixed.
Browse files
Changed paths12 files
First-parent comparison
M package.json ModifiedM packages/react-dom/src/__tests__/ReactDOMFizzServerBrowser-test.js ModifiedM packages/react-noop-renderer/src/ReactNoopFlightServer.js ModifiedM packages/react-server-dom-relay/src/ReactFlightDOMRelayServer.js ModifiedM packages/react-server-dom-webpack/src/ReactFlightDOMServerBrowser.js ModifiedM packages/react-server-dom-webpack/src/ReactFlightDOMServerNode.js ModifiedM packages/react-server-dom-webpack/src/__tests__/ReactFlightDOM-test.js ModifiedM packages/react-server-dom-webpack/src/__tests__/ReactFlightDOMBrowser-test.js ModifiedM packages/react-server-native-relay/src/ReactFlightNativeRelayServer.js ModifiedM packages/react-server/src/ReactFizzServer.js ModifiedM packages/react-server/src/ReactFlightServer.js ModifiedM yarn.lock Modified
Patch

Files changed

Rendering syntax-highlighted changes…