router.prefetch from next/navigation does not return a promise. #66343
Unanswered
jazsouf
asked this question in
App Router
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks,
I have noticed that the router.prefetch() imported from next/router (pages router) return a Promise while the one from next/navigation (app router) doen't return any value.
I wish I could display a loading screen and await for some links to prefetch before showing the front page of my website.
Is there any way to go about this?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions