Multiple pages with getServerSideProps and lag in navigation/routing
Unanswered
Northeast Congo Lion posted this in #help-forum
Northeast Congo LionOP
When a user clicks a <Link> to a page or uses router.push() that uses getServerSideProps, the browser holds the navigation—the UI freezes and the URL doesn't change—until the server has finished executing getServerSideProps and sends back the response. Only then does the new page render. This can feel slow and unresponsive, especially if the data fetching takes a moment. The desired behaviour is to have immediate navigation and CSR on subsequent page loads and navigations after the initial load. I am using the Pages router and Next.js version 14.2.25. Can someone please help here