Skip to content

Commit

Permalink
[Float][Fiber] Fixes incorrect boolean logic around loading states fo…
Browse files Browse the repository at this point in the history
…r stylesheets (facebook#27610)

the loading states of stylesheets found in the DOM during preinit should
be assumed to be loaded
  • Loading branch information
gnoff authored and AndyPengc12 committed Apr 15, 2024
1 parent d4ee321 commit a91b13c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a91b13c

Please sign in to comment.