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.

Success & Error Notifications

Within our application, we have some places in our Vuex code where we might be catching an error, like if our API call failed. Currently, we’re just logging those errors to the console. But that isn’t very helpful for our users, who should be informed when an error happens.

In this lesson, we’ll be learning how to add notifications to our Vuex store when things like errors and successful actions occur, and then we’ll explore how to display those notifications within our UI.


Problem: Need