Do not re-render entire page for a single server component. #66878
mayank1513
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
a. Assuming same is true for server component fetching data with revalidation
Non-Goals
Background
As evident in discussion over this PR - #66794, it would be great if we could sync the light/dark mode data with a single component on server side - to avoid FOUC.
This can be done by using cookies. However, this makes the entire page SSR. Only the component that requires cookies - may be along with its children - should re-render on each request and the sibling should be server as SSG.
Proposal
Yes. I am interested in contributing. However, I need some help in understanding the implementation of Sever Components and how and when they are rendered.
Beta Was this translation helpful? Give feedback.
All reactions