dillon1000/react
Commit
Browse files Split writeChunk into void and return value (#23343)
This function was modeled after Node streams where write returns a boolean whether to keep writing or not. I think we should probably switch this up and read desired size explicitly in appropriate places. However, in the meantime, we don't have to return a value where we're not going to use it. So I split this so that we call writeChunkAndReturn if we're going to return the boolean. This should help with the compilation so that they can be inlined.
Changed paths14 files
First-parent comparisonpackages/react-dom/src/server/ReactDOMLegacyServerStreamConfig.js ModifiedM packages/react-dom/src/server/ReactDOMServerFormatConfig.js ModifiedM packages/react-native-renderer/src/server/ReactNativeServerFormatConfig.js ModifiedM packages/react-noop-renderer/src/ReactNoopFlightServer.js ModifiedM packages/react-noop-renderer/src/ReactNoopServer.js ModifiedM packages/react-server-dom-relay/src/ReactFlightDOMRelayServerHostConfig.js ModifiedM packages/react-server-dom-relay/src/ReactServerStreamConfigFB.js ModifiedM packages/react-server-native-relay/src/ReactFlightNativeRelayServerHostConfig.js ModifiedM packages/react-server/src/ReactFizzServer.js ModifiedM packages/react-server/src/ReactFlightServer.js ModifiedM packages/react-server/src/ReactFlightServerConfigStream.js ModifiedM packages/react-server/src/ReactServerStreamConfigBrowser.js ModifiedM packages/react-server/src/ReactServerStreamConfigNode.js ModifiedM packages/react-server/src/forks/ReactServerStreamConfig.custom.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…