Problem
createTaskAndNavigate uses getOptimisticDataForParentReportAction which is not a pure function and uses data retrieved via Onyx.connect, which can lead to the UI not re-rendering when it should.
Solution
Refactor createTaskAndNavigate to use the new useAncestorReportsAndReportActions hook
cc @Tony-MK
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~021983946224319822611
- Upwork Job ID: 1983946224319822611
- Last Price Increase: 2025-10-30
Issue Owner
Current Issue Owner: @
Issue Owner
Current Issue Owner: @strepanier03
Problem
createTaskAndNavigate uses getOptimisticDataForParentReportAction which is not a pure function and uses data retrieved via Onyx.connect, which can lead to the UI not re-rendering when it should.
Solution
Refactor
createTaskAndNavigateto use the newuseAncestorReportsAndReportActionshookcc @Tony-MK
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @strepanier03