DEV Community

Discussion on: Page Loading Progress Bar in Next.js

Collapse
 
alabius profile image
Sunday Alabi

Am looking for a scenario where you are not changing route. but just a page refresh

Collapse
 
akhilaariyachandra profile image
Akhila Ariyachandra

You can probably use something like router.replace(router.asPath); to refresh the page. Check the useRouter hook.