Slow Navigation and Delayed Backend Request in Next.js Using `router.push(href)`
I’m working on a Next.js project and have implemented a SideNav component that dynamically generates navigation items based on the modules returned from an API. Each nav item has an href that is encoded using a custom function, and when a nav item is clicked, router.push(href) is called to navigate to the corresponding page.
Slow Navigation and Delayed Backend Request in Next.js Using `router.push(href)`
I’m working on a Next.js project and have implemented a SideNav component that dynamically generates navigation items based on the modules returned from an API. Each nav item has an href that is encoded using a custom function, and when a nav item is clicked, router.push(href) is called to navigate to the corresponding page.