dillon1000/react
Commit
Browse files [Float] support all links as Resources (#25515)
stacked on https://github.com/facebook/react/pull/25514 This PR adds support for any type of Link as long as it has a string rel and href and does not include an onLoad or onError property. The semantics for generic link resources matches other head resources, they will be inserted and removed as their ref counts go positive and back to zero. Keys are based on rel, href, sizes, and media. on the server preconnect and prefetch-dns are privileged and will emit near the start of the stream.
Changed paths5 files
First-parent comparisonpackages/react-dom-bindings/src/client/ReactDOMFloatClient.js ModifiedM packages/react-dom-bindings/src/server/ReactDOMFloatServer.js ModifiedM packages/react-dom-bindings/src/server/ReactDOMServerFormatConfig.js ModifiedM packages/react-dom-bindings/src/shared/ReactDOMResourceValidation.js ModifiedM packages/react-dom/src/__tests__/ReactDOMFloat-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…