What is a Vuex action?

In Vuex, actions are functions that call mutations . Actions exist because mutations must be synchronous, whereas actions can be asynchronous. You can define actions by passing a POJO as the actions property to the Vuex store constructor as shown below. To “call” an action, you should use the Store#dispatch() function.

Sizin İçin Seçtik  When would an enum or enumeration be used?

Leave a Reply

Your email address will not be published. Required fields are marked *