Replies: 1 comment
-
I know @jacob-ebey is researching the RSC implementation right now, it would be awesome to think about a prerendering implementation right now before the next Remix and react-router release |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With Remix, you can create layouts using _layout.page.tsx routes, which are ideal for partial prerendering.
Partial prerendering consists in storing a parent component as an html file with some special syntax for "holes" that React can use to fill in with dynamic components.
Here is some example usage: https://github.com/facebook/react/blob/7771d3a7972cc2483c45fde51b7ec2d926cba097/packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js#L6809
The use case would be improving SSR performance, right now if you use loaders you usually get pretty bad preformance because the full page needs to be rendered every time even if it does not change.
This feature would be similar to Astro server islands, which are dynamic components that are hydrated on a static page.
Beta Was this translation helpful? Give feedback.
All reactions