Question · Vue.js course · Module 11: Pinia
Calling Actions
How do you call a store action from a component?
Answer options
- Directly on the store instance: store.actionName()
- Through $dispatch('actionName')
- Through $emit('action')
- Only via mapActions()
You can check the correct answer by solving this task in the CodeWorlds game.