Next.js Discord

Discord Forum

why next 13 router.push() function is very slow can please help me out to make this router.

Unanswered
Masai Lion posted this in #help-forum
Open in Discord
Avatar
Masai LionOP
using router.push()

4 Replies

Avatar
is it slower in development or production?
Avatar
Chinese Chongqing Dog
It could be due to multiple reasons. It's difficult to tell exactly why without having analyzing the code or the environment.

For a start, you could use router.prefetch() beforehand.
Avatar
Masai LionOP
in dev
Avatar
it is common for development server to be slow, create a production build and check there