Why Refactor to Vuex Modules?
0:47
Refactoring a Simple(ish) Vuex Module
10:25
Refactoring all the other Vuex Modules
12:19
0% done with Vuex Modules

Chapter 13 of 27 in Building VueScreencasts.com
Refactoring a Simple(ish) Vuex Module

In this lesson, we take the parts of our Vuex store that are related to the Snackbar and move them into a Vuex Module.

We chose the snackbar-related state/mutations/actions because they're relatively simple, but will still let us see the basics: how to separate out the relevant functions, then how to access module state and call module actions from your component.

What do others think of VueScreencasts?
"Bro, very appreciate your videos! Keep doing videos please"
—Nathan Yang
"Amazing!!!!! Need this so much!!!!!!"
—Nathan Yang
"Hi! Your videos are very useful, please go on make it!"
—Сергей Миртов
"Dude, it's an excellent video. Soothing voice, extensive and crystal clear explanations, troubleshooting common issues... You do it and you do it well. Keep up the good work & congratulations :-) Subscribed without the slightest hesitation"
—BillyBobBonnet
Take your career to the next level