Next.js Discord

Discord Forum

router issue

Unanswered
Slate-throated Redstart posted this in #help-forum
Open in Discord
Avatar
Slate-throated RedstartOP
iam using next 13.4 i had deployed app on vercel iam using router.push() for navigation on click of any navgation the screen is not showing any loader.tsx for 2 to 3 seconds after it showing loader and it is navigating can anyone help me to fix this tried suspense in all pages and also tried of using loader.tsx in all pages directory

5 Replies

Avatar
Risky
are you using dev version (ie npm run dev)? as that may be slowing everything down
Avatar
B33 underestimated me correct :(
Send your code as well
Avatar
Slate-throated RedstartOP
its simple code router.push('/page-name')
not in dev iam getting the issue on prod
npm run build