Skip to content

Is beforeUnmountthe best solution? #8791

Discussion options

You must be logged in to vote

@IvanWala try one of the vue component router guards https://router.vuejs.org/guide/advanced/navigation-guards.html#in-component-guards, specifically beforeRouteLeave, see their example.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@IvanWala
Comment options

Answer selected by rstoenescu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants