Router onBeforeLeave Hook
zachlankton opened this issue · comments
This will provide a way to cancel navigation if a user may lose progress on their work if they navigate away, such as filling out a form
router.route.onBeforeLeave((to, from) => return false)