0👍
I see a couple of ways of handling this.
- Compute
totalFees
in the parent component and then feed this via props to the children. This seems the fastest way - Compute
totalFees
in children as now, fire and event via emit. Listen for the event on the parent and addtotalFees
to the correct index inflightData
. The emitted event should also passflight.id
so you know what element to be updated.
Source:stackexchange.com