Skip to content
Discussion options

You must be logged in to vote

There is also the initial navigation that makes the router.beforeEach() run once for the initial navigation (app.use(router) on client). The second log comes from your router.push()

An another possibility is you put the router.beforeEach() within a component's setup, so every time that component is mounted, a new navigation guard is added without removing the other one when unmounting.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mc-tracker
Comment options

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

This discussion was converted from issue #1739 on March 15, 2023 12:37.