Skip to content

Commit d49a09e

Browse files
committed
Fix context providers in SSR when handling multiple requests. Closes #23089
1 parent f2a59df commit d49a09e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/react-server/src/ReactFizzNewContext.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ function popToNearestCommonAncestor(
7878
}
7979

8080
popToNearestCommonAncestor(parentPrev, parentNext);
81-
// On the way back, we push the new ones that weren't common.
82-
pushNode(next);
8381
}
82+
83+
// On the way back, we push the new ones that weren't common.
84+
pushNode(next);
8485
}
8586
}
8687

0 commit comments

Comments
 (0)