Cancel navigation in Next13
Unanswered
Texas leafcutting ant posted this in #help-forum
Texas leafcutting antOP
Previously, we have used
router.events.emit('routeChangeError') in order to cancel navigation (mimicking the behaviour of beforeUnload event). As they have migrated away from using router.events it is unclear to me how I can replicate this behaviour.