Server-only react code #2467
-
Dear community you might be able to help me better understand the React code-splitting with Vike. This is actually probably a React question, not a Vike question.
Does this mean that, while we have clientOnly mode, as described in the docs - we do not have a server-only mode or a smart way to tell react "ok bro these parts are static UI, they have nothing to do with you"? ![]() I know that Next.js attempted to create this feature by doing PPR, where they consider everything until the first client boundary a static part of the page, but I don't know if they also have to fully hydrate it. I suppose Astro is the only one that truly does islands |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Indeed that's how it works today. AFAICT, in theory, it could be possible with Server Components but I believe no one has achieved that in practice yet. |
Beta Was this translation helpful? Give feedback.
Indeed that's how it works today. AFAICT, in theory, it could be possible with Server Components but I believe no one has achieved that in practice yet.