The video for this lesson is currently being updated, please read the transcript instead.

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,

To view the complete lesson you'll need to login or join this course.


Click to load comments...