File tree Expand file tree Collapse file tree
src/pages/iou/request/step Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -202,6 +202,8 @@ function IOURequestStepParticipants({
202202 // We don't want to compare params because we just changed the participants.
203203 Navigation . goBack ( iouConfirmationPageRoute , { compareParams : false } ) ;
204204 } else {
205+ // We wrap navigation in setNavigationActionToMicrotaskQueue so that data loading in Onyx and navigation do not occur simultaneously.
206+ // More information can be found here: https://github.com/Expensify/App/issues/73728
205207 Navigation . setNavigationActionToMicrotaskQueue ( ( ) => {
206208 Navigation . navigate ( iouConfirmationPageRoute ) ;
207209 } ) ;
@@ -357,6 +359,8 @@ function IOURequestStepParticipants({
357359 // We don't want to compare params because we just changed the participants.
358360 Navigation . goBack ( route , { compareParams : false } ) ;
359361 } else {
362+ // We wrap navigation in setNavigationActionToMicrotaskQueue so that data loading in Onyx and navigation do not occur simultaneously.
363+ // More information can be found here: https://github.com/Expensify/App/issues/73728
360364 Navigation . setNavigationActionToMicrotaskQueue ( ( ) => {
361365 Navigation . navigate ( route ) ;
362366 } ) ;
You can’t perform that action at this time.
0 commit comments