DEV Community

Discussion on: How to show a loading bar when changing routes in NextJS

Collapse
 
farskid profile image
Farzad YZ

For the latest NextJS, you need to use Router.events.on.
More info: nextjs.org/docs/api-reference/next...