Replies: 2 comments 2 replies
-
Hey 👋 Actually, I've been thinking about this a lot and definitely want to add RSC support in Docusaurus for various reasons. One of them is of course to reduce the bundle size, hydration time (particularly on long MDX content that's often quite static) and improve Lighthouse/CWV metrics. There are also opportunities to use RSC to use more convenient tooling to interleave heavy runtime libs without paying the cost in the bundle. I'm thinking of:
Some related tweets:
What I'm most excited about is the flexibility it allows for Docusaurus Server/Static Components to query a data lake. We currently don't have a data layer like Gatsby, so the blog data is kind of only available on the Somehow it would allow the same as GraphQL for Gatsby, but we'd only use TypeScript instead and just pick the data we want for each page through the Server Components. Today I'm still in the process of upgrading to MDX 2 (#8288) and will upgrade to React 18 just after 😅 Also apart from looking at Next.js I'm not sure yet how to integrate RSCs in Docusaurus, is there any example of vanilla RSC integration out there? |
Beta Was this translation helpful? Give feedback.
-
Created an issue so that github backlinking works better: #9089 |
Beta Was this translation helpful? Give feedback.
-
Discussion moved to #9089
Beta Was this translation helpful? Give feedback.
All reactions