Skip to content

Commit

Permalink
Merge pull request #14619 from Expensify/nat-load
Browse files Browse the repository at this point in the history
Add reimbursementpage loader right away
  • Loading branch information
Luke9389 authored Jan 27, 2023
2 parents ff9e01a + 0227168 commit 36225e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/ReimbursementAccount/ReimbursementAccountPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ class ReimbursementAccountPage extends React.Component {
* @param {boolean} ignoreLocalCurrentStep Pass true if you want the last "updated" view (from db), not the last "viewed" view (from onyx).
*/
fetchData(ignoreLocalCurrentStep) {
// Show loader right away, as optimisticData might be set only later in case multiple calls are in the queue
BankAccounts.setReimbursementAccountLoading(true);

// We can specify a step to navigate to by using route params when the component mounts.
// We want to use the same stepToOpen variable when the network state changes because we can be redirected to a different step when the account refreshes.
const stepToOpen = this.getStepToOpenFromRouteParams();
Expand Down

0 comments on commit 36225e3

Please sign in to comment.