dillon1000/react

Commit

[Flight] don't overwrite existing chunk listeners in 'wakeChunkIfInitialized' (#29204)

Follow up to https://github.com/facebook/react/pull/29201. If a chunk
had listeners attached already (e.g. because `.then` was called on the
chunk returned from `createFromReadableStream`),
`wakeChunkIfInitialized` would overwrite any listeners added during
chunk initialization. This caused cyclic [path
references](https://github.com/facebook/react/pull/28996) within that
chunk to never resolve. Fixed by merging the two arrays of listeners.
Browse files
Changed paths2 files
First-parent comparison
M packages/react-client/src/ReactFlightClient.js ModifiedM packages/react-server-dom-webpack/src/__tests__/ReactFlightDOMBrowser-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…