Vuex for Everyone
🚧 PLEASE NOTE: An updated version of this course is available! see the Pinia: The Enjoyable Vue Store course. This course is outdated!

Vuex Actions

In this lesson, we’ll dive into what Vuex actions are, and how and where to define in our application.

We’ll point out a true benefit of using actions to fetch our products from the store compared to fetching products directly inside a component.

Since actions usually are asynchronous we’ve added a little bonus section with promises.

As always we’ll implement what we’ve learned and progressively build our shopping cart.

You can find the spinner image here.