Mastering Vuex

Lessons

1. Intro to Vuex

5:13

2. Mastering Vuex Orientation

5:59

3. State & Getters

11:58

4. Mutations & Actions Pt. 1

17:15

5. Mutations & Actions Pt. 2

17:47

6. Modules

15:18

7. Success & Error Notifications

13:47

Although this course was developed with Vue 2, the syntax for Vue 3 with Vuex is virtually the same.

State & Getters

In the last lesson, we saw an overview of how Vuex works. In this tutorial, we’ll look at how we can access the State from our Vuex store from within our components, both directly and with the help of Getters.


Accessing State

If we take a look at our main.js file, we see we’re importing our