Using beforeEnter with file based routing on vue-router v5 #2655
Unanswered
Slessi
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Should the above work? I am trying to migrate my existing setup to file routing, and the one hurdle I seem to have is migrating
beforeEntercalls. Nothing I do in there seems to work, so it feels likebeforeEnterparams are just ignored entirely.I could probably achieve similar logic with
onBeforeMountinside the setup of pages that used to usebeforeEnter, but it doesn't feel like 1:1 parity, I have to block things on the page before I am sure thebeforeEnterhas completed.Also a bit annoying to replace things like auth0's authGuard which would've been something like
Beta Was this translation helpful? Give feedback.
All reactions