0👍
It’s all because of how vuejs track/observe object to be able to react to a change.
I would suggest to use the following syntax when working
- with array
addItem (item) {
this.items = [...this.items, item]
- with object
updateItem (item) {
this.item = Object.assign({}, this.item, item)
}
- [Vuejs]-Import errors for ThreeJS in vue-test-utils with Jest
- [Vuejs]-Get all values of custom input inside v-for vuejs
Source:stackexchange.com