Events for router from next/navigation
Unanswered
Daggertooth pike conger posted this in #help-forum
Daggertooth pike congerOP
The router from next/router had an
.event
prperty for observing change; the router from next/navigation doesn't seem to have the same property. How do you watch for change on the next/navigation router?1 Reply
you have to listen to it manually https://nextjs.org/docs/app/api-reference/functions/use-router#router-events