dillon1000/react
Commit
Browse files [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.
Changed paths3 files
First-parent comparisonpackages/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…