[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:
Josh Story
2023-10-27 08:50:40 -07:00
committed by GitHub
parent 8039e6d0b9
commit 3e09c27b88
@@ -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(