dillon1000/react

Commit

Perform hasOwnProperty check in Relay Flight (#20220)

We simulate JSON.stringify in this loop so we should do a has own check.
Otherwise we'll include things like constructor properties.

This will actually make things throw less even when it should.
Browse files
Changed paths4 files
First-parent comparison
M packages/react-transport-dom-relay/src/ReactFlightDOMRelayServerHostConfig.js ModifiedM packages/react-transport-dom-relay/src/__tests__/ReactFlightDOMRelay-test.internal.js ModifiedM packages/react-transport-native-relay/src/ReactFlightNativeRelayServerHostConfig.js ModifiedM packages/react-transport-native-relay/src/__tests__/ReactFlightNativeRelay-test.internal.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…