how to detect router navigation in Next13 app directory?
Answered
definitelynotshourya posted this in #help-forum
I want to detect routeChangeStart and routeChangeEnd in the next 13 router.
How to do this?
How to do this?
Answered by joulev
routeChangeEnd: https://nextjs.org/docs/app/api-reference/functions/use-router#router-eventsrouteChangeStart: listen to onClick event of next/link2 Replies
@definitelynotshourya I want to detect routeChangeStart and routeChangeEnd in the next 13 router.
How to do this?
routeChangeEnd: https://nextjs.org/docs/app/api-reference/functions/use-router#router-eventsrouteChangeStart: listen to onClick event of next/linkAnswer
Thanksss