Closed tychovbh closed 5 years ago
See open ticket: https://github.com/gvergnaud/nextjs-dynamic-routes/issues/7
The way that I implemented this you can use it exactly as described in the nextjs documentation so:
import Router from '../../routes' const handleRouteChange = url => { console.log('App is changing to: ', url) } Router.events.on('routeChangeStart', handleRouteChange)
@gvergnaud PR updated!
Published under v2.3.0. Thanks!
See open ticket: https://github.com/gvergnaud/nextjs-dynamic-routes/issues/7
The way that I implemented this you can use it exactly as described in the nextjs documentation so: