Skip to content

Commit 2c3171f

Browse files
sokraAndyPengc12
authored andcommitted
fix incorrect insertion order of stylesheets (facebook#28108)
## 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. -->
1 parent cd00293 commit 2c3171f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3559,7 +3559,7 @@ function insertStylesheetIntoRoot(
35593559
if (prior === last) {
35603560
precedences.set('last', instance);
35613561
}
3562-
precedences.set(precedence, instance);
3562+
precedences.set('p' + precedence, instance);
35633563

35643564
this.count++;
35653565
const onComplete = onUnsuspend.bind(this);

0 commit comments

Comments
 (0)