Cancel navigation on route change.
Asim Dahal
Posted on December 23, 2019
I have a component which requires confirmation before navigating to another component. There is a Prompt component in react router
which enables to ask confirmation before navigating to another component but I can't find any similar solution in reach-router
. Is there any way I can ask the user for confirmation before they navigate to another route and cancel the navigation if the user responds no?
💖 💪 🙅 🚩
Asim Dahal
Posted on December 23, 2019
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.