0% done with Many-to-Many relationships in Vuex
14:20
|
Published on
10/4/2019
|
|
Chapter 11 of 27 in Building VueScreencasts.com
Adding and Removing Tags
We first try the obvious method for adding and removing tags -- taking the updated array and setting it in the store -- but that causes a bug.
The method we settle on is using underscore's differenceBy
function to uncover what tag has been added or removed, then sending that one tag to Vuex.
What do others think of VueScreencasts?
"Really nice video with nice explanation. Subscribe"
—Igor Špánik
"Really nice video with nice explanation. Subscribe"
—Igor Špánik
"You saved my day! Thanks!"
—Ivomar Santos
"Such an excellent video! Your explanations are so clear. This is the first time where I don't feel burned out in a 40min+ video tutorial. Thank you so much!"
—João Victor Valentim