Refactor: Separate RSC renderer from SSR wrapping component (#59676)
This commit updates some of the code organization in app-render in preparation for supporting dynamic RSC repsonses on top of static SSR responses for PPR. The main change to notice is the separation of creating the server component renderer which initiates the RSC render and executes in the RSC layer with the consuming component which lives in the SSR layer. By organizing the code this way we can later only call the server render in certain cases, omitting the SSR render entirely. This is different than just using the generaetFlight pathway because that pathway serves client navs and does not actually render the same output that the intial render does. Closes NEXT-1889
Showing
This diff is collapsed.
Please
register
or
sign in
to comment