Skip to content

Does anyone use this crap with typescript? How do you use NavigationGuardNext if it accepts nothing that is listed as param? #2538

Closed Locked Answered by posva
jumika asked this question in Help and Questions
Discussion options

You must be logged in to vote

You have to revisit the way to communicate in discussions my friend. It's not okay to start by a sentence like "does anyone use this crap". I'm locking the conversation because of this.

The type error should give you more insights about which type is not working.

BTW, use a return instead of next, that's the old v3 version, it will be deprecated soon:

onBeforeRouteUpdate((to, from) => {
   return handleRoute(to)
})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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