Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save gdbate/efbcd6d9ac855352ec3189f560cfcbd0 to your computer and use it in GitHub Desktop.

Select an option

Save gdbate/efbcd6d9ac855352ec3189f560cfcbd0 to your computer and use it in GitHub Desktop.
Structuring Vuex Modules - Maintaining Record Order - Adding
store.actions = {
all({commit}, all){
for(let i in all)
commit('add', {...all[i], order: i})
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment