CFHxKai
How to prevent navigation in nested routes?
1. give the same problem reported.
2. I think not work in this case because middleware run after leave and before enter (right? :P), and if leave the page I will lost page/components states (form changes).
3. do the trick, but need clean the
beforeEach
on leave (unmount page) to prevent register a new listener in each page change:
Don't know if is the better solution, but I don't find a better way to solve. ^^
Thank you... 😉6 replies