From 763612647ceb66d95f728af896ca5e18a8181db8 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Fri, 26 Jan 2024 16:54:58 +0100 Subject: [PATCH] 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? --- 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);