0% done with NuxtJS + Vuex: Deserialization, load strategies, middleware
9:28
|
Published on
10/20/2019
|
|
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?
"Awesome video!"
—Doïc de Maleprade
"Thank you! Really digging your videos!"
—Lars Sørensen
"You saved my job just now."
—Shamim Hossain