Why use Vuex in Nuxt?
From asyncData to Vuex (naive version)
Refactoring with deserializers, destructuring
Loading Strategies for Vuex
Preloading, Middleware, and Promises
Review of Nuxt + Vuex
0% done with NuxtJS + Vuex: Deserialization, load strategies, middleware

Chapter 16 of 27 in Building VueScreencasts.com
Refactoring with deserializers, destructuring

Now that our three actions are side-by-side, we can see many similarities between them - places where the code could be abstracted to gain clarity.

In this lesson, we create deserializers for the videos and tags that come over the wire, shaping the data so it's more easily used by our app.

We also abstract the API call, using creative destructuring to make our code short and clear.

What do others think of VueScreencasts?
"Hi! Your videos are very useful, please go on make it!"
—Сергей Миртов
"I like the way you explain and teach, also your enunciation is incredible for us 'non native' english persons, everything is so enjoyable... Thank you for putting so much effort and time into making this video knowledge."
"Thank you, it is very interesting."
—Chris LR
"Very well explained."
—Leon van Rijswijk
Take your career to the next level