Skip to content

Commit

Permalink
fix incorrect insertion order of stylesheets (facebook#28108)
Browse files Browse the repository at this point in the history
## Summary

In the precendences Map every key is prefixed with `p`. This fixes one
case where this is missing.

## How did you test this change?

<!--
Demonstrate the code is solid. Example: The exact commands you ran and
their output, screenshots / videos if the pull request changes the user
interface.
How exactly did you verify that your PR solves the issue you wanted to
solve?
  If you leave this empty, your PR will very likely be closed.
-->
  • Loading branch information
sokra authored and AndyPengc12 committed Apr 15, 2024
1 parent cd00293 commit 2c3171f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3559,7 +3559,7 @@ function insertStylesheetIntoRoot(
if (prior === last) {
precedences.set('last', instance);
}
precedences.set(precedence, instance);
precedences.set('p' + precedence, instance);

this.count++;
const onComplete = onUnsuspend.bind(this);
Expand Down

0 comments on commit 2c3171f

Please sign in to comment.