Next.js Discord

Discord Forum

Why NextJS does roundtrip for client components when just changing params

Unanswered
Ghost ant posted this in #help-forum
Open in Discord
Ghost antOP
I'm trying to understand the semantics here. So I have a page.tsx client component with "use client". It's inside a directory called users/[[...params]]. Everytime I click a link for another user like going from /users/foo to /users/bar I notice a roundtrip to the server before the component actually rerender. What is the server even doing here? Because it seem like my component don't even re-render on the server (since this is a client navigation prerendering should not happen)

What is the point of this round-trip and possible delay when I already have the client code for my page downloaded?

0 Replies