mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[Float][Fiber] Fixes incorrect boolean logic around loading states for stylesheets (#27610)
the loading states of stylesheets found in the DOM during preinit should be assumed to be loaded
This commit is contained in:
@@ -2337,7 +2337,7 @@ function preinitStyle(
|
||||
getStylesheetSelectorFromKey(key),
|
||||
);
|
||||
if (instance) {
|
||||
state.loading = Loaded & Inserted;
|
||||
state.loading = Loaded | Inserted;
|
||||
} else {
|
||||
// Construct a new instance and insert it
|
||||
const stylesheetProps = Object.assign(
|
||||
|
||||
Reference in New Issue
Block a user