Vue documentation states:
Vue cannot detect the following changes to an array:
- When you directly set an item with the index, e.g.
vm.items[indexOfItem] = newValue- When you modify the length of the array, e.g.
vm.items.length = newLength
But I couldn't find anything about spread operators.
Will Vue detect a change if we use this.arr1 = [...arr2, ...arr3]; for arr1, where arr1 is declared in data({})?
spread operators do make a lot of things easier, but are they safe in this context ?