Coming from #54965 (comment)
Problem
When getTripTransactions() is called, it accesses data from Onyx that the view is not connected to. This breaks the reactivity of the component because when the transactions are updated in Onyx, the component won't receive the changes. This leads to stale data.
Solution
Remove getTripTransactions() and connect to the data using useOnyx() instead.
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~021877740338376092500
- Upwork Job ID: 1877740338376092500
- Last Price Increase: 2025-01-10
- Automatic offers:
- shubham1206agra | Contributor | 105641744
Issue Owner
Current Issue Owner: @shubham1206agra
Coming from #54965 (comment)
Problem
When
getTripTransactions()is called, it accesses data from Onyx that the view is not connected to. This breaks the reactivity of the component because when the transactions are updated in Onyx, the component won't receive the changes. This leads to stale data.Solution
Remove
getTripTransactions()and connect to the data usinguseOnyx()instead.Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @shubham1206agra