Answer the question
In order to leave comments, you need to log in
What is the correct way to delete an object in VUEX?
There is an object state.items[id] of the list of items. You need to correctly remove the item from the list.
I did it with the help of a mutation with the delete state.items[id] code, the object was deleted, but reactivity did not work.
Answer the question
In order to leave comments, you need to log in
In vue 2, removing via the $remove method is considered deprecated. Use Vue.delete.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question