Thanks @clarkdo!
I guess I should explore more.
Closing this.
Why is there no actions in examples?
For actions you need to export an "actions" object (the same as for mutations), and when you want to dispatch the action you need to prefix the name of the action with the namespace of the module.
e.g:
in store/todos :
export const actions = {
increment ({
commit
}) {
commit('increment', 1)
}
}
in components/todos.js:
dispatch('todos/increment')
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Why is there no actions in examples?