Skip to content

Commit

Permalink
Fix double preload (facebook#26729)
Browse files Browse the repository at this point in the history
Summary:
I found a couple scenarios where preloads were issued too aggressively

1. During SSR, if you render a new stylesheet after the preamble flushed
it will flush a preload even if the resource was already preloaded
2. During Client render, if you call `ReactDOM.preload()` it will only
check if a preload exists in the Document before inserting a new one. It
should check for an underlying resource such as a stylesheet link or
script if the preload is for a recognized asset type

DiffTrain build for commit facebook/react@ec5e9c2.

Reviewed By: kassens

Differential Revision: D45295400

fbshipit-source-id: 6255a2c72d321fdef508d8805b3a5cb807c5c384
  • Loading branch information
gnoff authored and facebook-github-bot committed Apr 26, 2023
1 parent 0f65b04 commit c1dea41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native/Libraries/Renderer/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f87e97a0a67fa7cfd7e6f2ec985621c0e825cb23
ec5e9c2a75749b0a470b7148738cb85bbb035958

0 comments on commit c1dea41

Please sign in to comment.