All quizzes
Free quiz · 19 questions in the bank

Vuex quiz

Test your Vuex knowledge with a free interactive quiz — 19 questions with answers and explanations. No signup needed to play.

Question 1/12Score 0

What is "state" in a Vuex store?

In this round
  1. What is "state" in a Vuex store?
  2. What are Vuex "modules"?
  3. What is a "mutation" in Vuex, and what is its defining constraint?
  4. Why is directly mutating state outside of a mutation (e.g. `this.$store.state.count = 5` from a component) discouraged/considered a Vuex anti-pattern?
  5. Why must a mutation be a synchronous function?
  6. What is a plugin in the Vuex sense, and how does it typically interact with the store?
  7. How do you read state in a component?
  8. How do namespaced Vuex modules affect how you dispatch an action defined inside one?
  9. How do you trigger an action from a component?
  10. What is a common reason to use a getter instead of computing a derived value inline inside every component that needs it?
  11. What does calling `store.subscribe(callback)` let you do?
  12. What is the relationship between Vuex and Pinia?
Gaps to close?
Read the curated Vuex notes — core concepts, patterns, interview prep.
Vuex notes

More quizzes

.NETAccessibilityAgileAgile MethodologyAirflowAkka