Vue · Senior · Question 59 of 75

When is router.beforeResolve the right place for a check?

Explanation

It's a good spot for permission checks or fetching that need all route components loaded. afterEach can't cancel navigation.

Further reading

Problem with a question

Vue · Senior · question 59

Test yourself

Take the Vue · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz