Found a solution:
- use a different variable for QTable data
- implement a “watch” on the result variable of apollo-client
- reset QTable data variable with an empty array
- iterate with forEach over the result variable of apollo-client in the watch function and push each item inside “value” to it’s counterpart in the QTable data variable
watch: {
books () {
this.tableData = []
this.books.forEach((value) => {
this.tableData.push({ id: value.id, author: value.author, title: value.title })
})
}
}
Is there a better solution?