October 2019
Intermediate to advanced
108 pages
2h 24m
English
The third key part of Vuex is called actions. Actions are methods, just as mutations are, but they can perform asynchronous code within them.
Actions receive two parameters as follows:
A common pattern in Vuex-powered applications is to keep HTTP calls inside Vuex actions—that way, they can be dispatched by any component inside the application if they are needed. These HTTP calls usually modify or make ...
Read now
Unlock full access