Vue · Middle · Question 41 of 75

Can Pinia actions be asynchronous?

Explanation

Unlike Vuex there are no separate mutations; actions change state directly. $onAction lets you observe actions, including when they resolve or fail.

Further reading

Problem with a question

Vue · Middle · question 41

Test yourself

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

Take this quiz