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
Masai LionOP
using router.push()
4 Replies
@Masai Lion using router.push()
is it slower in development or production?
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
For a start, you could use
router.prefetch()
beforehand.@Yi Lon Ma is it slower in development or production?
Masai LionOP
in dev
@Masai Lion in dev
it is common for development server to be slow, create a production build and check there