I am attempting to modify the list
property in Vue.js using Inertia.js:
props: {
list: {
type: Object,
default: {}
}
},
updateTable(filters) {
axios.post(route('updateList'), filters)
.then(r => {
this.list = r.data
})
}
However, I encountered the error message:
TypeError: 'set' on proxy: trap returned falsish for property
In Inertia.js, all props are provided as proxies. According to this MDN article, the proxy's set
method must return true for allowing assignment. I'm unsure how to achieve this correctly since I didn't create the proxy myself. Any suggestions?
Do I always need to resort to a partial reload when working with Inertia?