I am working on a project in Vue 3 with TypeScript where I have an array of objects called Obj1. When I click the "load more" button, it triggers an axios call to the backend service and fetches another array of objects of the same type. My goal is to append these new rows to the existing array, but for some reason, the following code is not working as expected:
this.Array1.push(response.data)
However, if I add one item at a time, the Array1 gets updated successfully:
this.Array1.push(response.data[0])
I am puzzled as to what could be missing here. Any insights?