Skip to content

Commit

Permalink
Fix context providers in SSR when handling multiple requests. Closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
frandiox authored and gaearon committed Jan 24, 2022
1 parent d99d6d4 commit ff58d45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/react-server/src/ReactFizzNewContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit ff58d45

Please sign in to comment.