Skip to content

Commit 7636126

Browse files
authored
fix incorrect insertion order of stylesheets (#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 6c64428 commit 7636126

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)