Vue · Junior · Question 50 of 75

What do you need to do before using any Pinia store?

Explanation

Calling a store hook before the Pinia instance is installed throws an error about no active Pinia. In SSR a new Pinia instance is created for each request.

Further reading

Problem with a question

Vue · Junior · question 50

Test yourself

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

Take this quiz