[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
Josh Story committed
Oct 27, 2023 at 08:50 UTC
3e09c27b880e1fecdb1eca5db510ecce37ea6be2
1 file changed
+1
-1
packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js
+1
-1
@@ -2337,7 +2337,7 @@ function preinitStyle(
2337
getStylesheetSelectorFromKey(key),
2338
);
2339
if (instance) {
2340
- state.loading = Loaded & Inserted;
2340
+ state.loading = Loaded | Inserted;
2341
} else {
2342
// Construct a new instance and insert it
2343
const stylesheetProps = Object.assign(