Skip to content

Commit 5cec5c6

Browse files
committed
chore: added comments
1 parent 58a4ee3 commit 5cec5c6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/pages/iou/request/step/IOURequestStepParticipants.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)