From f0b24ec37edc2748dee016d0f73771f3fdcb36f3 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Fri, 26 Jan 2024 12:15:10 +0100 Subject: [PATCH] fix incorrect insertion order of stylesheets In the precendences Map every key is prefixed with `p`. This fixes one case where this is missing. --- packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js b/packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js index a83d4981d4a88..2bd2d29350b99 100644 --- a/packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js +++ b/packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js @@ -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);