A similar problem has been solved in this issue:
Access prop in method with VueJS
Where prop
was null
since the ajax
request of the parent component was not yet completed; but in my case the prop
is undefined
even after the component is completely set up and the data path via ajax is completed.
export default {
props: ['orders'],
filterID: null,
...
watch: {
filterID: (value) => {
console.log(this.orders) // undefined
}
}