Vue · Senior · Question 42 of 75

How do guards handle async work like fetching permissions?

Explanation

Keep guards fast or cache results - every navigation waits. The older next() callback style is still supported but returning values is recommended.

Further reading

Problem with a question

Vue · Senior · question 42

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