NextJs SSR and CSR
Unanswered
raut008 posted this in #help-forum
raut008OP
I have two routes which as rendered Serverside. Assume / and /aboutus
When I hit / route it generates a doc and then when I route to /aboutus route. It navigates to /aboutus route but makes a json call that's means we are hitting next server. Why does it makes that json call for movies page. How can I avoid movies json call ? Rather than hitting next server I want to make that call on client itself and get it as xhr request rather than json call
When I hit / route it generates a doc and then when I route to /aboutus route. It navigates to /aboutus route but makes a json call that's means we are hitting next server. Why does it makes that json call for movies page. How can I avoid movies json call ? Rather than hitting next server I want to make that call on client itself and get it as xhr request rather than json call
3 Replies
Asian paper wasp
Why does it makes that json call for movies pageDo you have a link in of
/movies in the /aboutus page? Next.js Link by default prefetch the links that's present in the current page.raut008OP
My point is why do we have to fetch data via next server and pass on for /movies route. Since it has already on client side rather fetch it on client side itself
raut008OP
I have make link prefetch as false