Despite pushing data into an array, the view and Vue dev tools do not update. Why is this happening?
Even after clearing the browser cache, the issue persists.
myData = [
[
{
test: true
}
]
]
methods: {
addDataItem() {
console.log(this.myData[0].length); // = 1
this.myData[0].push({});
console.log(this.myData[0].length); // = 2. The data is successfully pushed, but why isn't the view updating in Vue dev tools?
}
}
Strangely, this method seems to work:
this.myData.push({});