1
A similar problem has been solved in this issue:
Where a prop
era null
for the requisition ajax
of the parent component had not yet concluded; but in my case the prop
is undefined
even after the complete assembly of the component and data passage via ajax has been completed.
export default {
props: ['orders'],
filterID: null,
...
watch: {
filterID: (value) => {
console.log(this.orders) // undefined
}
}
@Miguel I need to apply a filter to
orders
in accordance with theID
so I need to capture when the fieldID
is amended.– RFL
the filter would be applied where the
console.log
with:this.orders.filter()...
– RFL
@Miguel put a
watcher
inorders
to "copy" the data to another component property but always returns it to menull
even after the data is passed to the listing component.– RFL