-
Are there any routing hooks like useRouter for nextjs , Nextjs has the ability to check if the new page is loading in order to show a progress bar at the top before navigating the page or instead of showing a loading screen |
Beta Was this translation helpful? Give feedback.
Answered by
cyco130
Feb 5, 2023
Replies: 1 comment
-
Sure, try It's documented here. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tigawanna
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sure, try
useLocation
which returns an object with acurrent
and apending
property which areURL
objects.pending
is only defined during page transitions.It's documented here.