From d49a09ef77009443c704f1fcbb39531c28ebd806 Mon Sep 17 00:00:00 2001 From: Fran Dios Date: Mon, 24 Jan 2022 19:45:22 +0900 Subject: [PATCH] Fix context providers in SSR when handling multiple requests. Closes #23089 --- packages/react-server/src/ReactFizzNewContext.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/react-server/src/ReactFizzNewContext.js b/packages/react-server/src/ReactFizzNewContext.js index 0cb879ef780d66..0eaa07f839a167 100644 --- a/packages/react-server/src/ReactFizzNewContext.js +++ b/packages/react-server/src/ReactFizzNewContext.js @@ -78,9 +78,10 @@ function popToNearestCommonAncestor( } popToNearestCommonAncestor(parentPrev, parentNext); - // On the way back, we push the new ones that weren't common. - pushNode(next); } + + // On the way back, we push the new ones that weren't common. + pushNode(next); } }