Vue essentials - Vuex actions
The next Vuex feature we are going to examine is actions.
So actions are very similar to mutations, are functions that you define as part of your
store configuration.
The big difference is that actions, they don't change the state, all they do is commit mutations,
and also unlike mutations they can be asynchronous.
So we haven't talked about this this just yet but mutations need to be synchronous they
can't be asynchronous.
So in other words you can't, for example,
Click to load comments...