From c1dea41cf2e9e9ff8f617c966ee0af4f8584e508 Mon Sep 17 00:00:00 2001 From: gnoff Date: Wed, 26 Apr 2023 12:43:15 -0700 Subject: [PATCH] Fix double preload (#26729) 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 https://github.com/facebook/react/commit/ec5e9c2a75749b0a470b7148738cb85bbb035958. Reviewed By: kassens Differential Revision: D45295400 fbshipit-source-id: 6255a2c72d321fdef508d8805b3a5cb807c5c384 --- packages/react-native/Libraries/Renderer/REVISION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/Libraries/Renderer/REVISION b/packages/react-native/Libraries/Renderer/REVISION index 30e2f1820bc0b7..79bd29cdb09d2d 100644 --- a/packages/react-native/Libraries/Renderer/REVISION +++ b/packages/react-native/Libraries/Renderer/REVISION @@ -1 +1 @@ -f87e97a0a67fa7cfd7e6f2ec985621c0e825cb23 +ec5e9c2a75749b0a470b7148738cb85bbb035958