dillon1000/react

Commit

[RSC @ Meta] Simplify implementation of isClientReference, getClientReferenceKey, resolveClientReferenceMetadata (#27839)

For clientReferences we can just check the instance of the
`clientReference`.
The implementation of `isClientReference` is provided via configuration.
The class for ClientReference has to implement an interface that has
`getModuleId() method.
Browse files
Changed paths3 files
First-parent comparison
M packages/react-server-dom-fb/src/ReactFlightDOMServerFB.js ModifiedM packages/react-server-dom-fb/src/ReactFlightReferencesFB.js ModifiedM packages/react-server-dom-fb/src/__tests__/ReactFlightDOMServerFB-test.internal.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…