promise chaining to ensure proper form initialization#58375
Conversation
|
@dominictb Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeScreen.Recording.2025-03-21.at.02.38.48.moviOS: NativeScreen.Recording.2025-03-21.at.02.29.50-compressed.moviOS: mWeb SafariScreen.Recording.2025-03-21.at.02.32.00.movMacOS: Chrome / SafariScreen.Recording.2025-03-21.at.02.08.14.movMacOS: DesktopScreen.Recording.2025-03-21.at.02.27.58.mov |
|
@sosek108 Please update your |
|
@sosek108 Screen.Recording.2025-03-14.at.02.52.40.mov |
@dominictb Done, thanks for catching that up |
|
@sosek108 Don't forget to take a glance at #58375 (comment) 😄 |
|
@dominictb it appears that you cannot use the same account number in two workspaces (makes sense to me). You wrote the same number in both cases. When you changed back to first workspace the response from API resets setup state with this: {
"key": "reimbursementAccount",
"onyxMethod": "merge",
"value": {
"achData": {
"state": ""
}
}
},Everything works if you pass different account number |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #58369 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
@rafecolton will review this PR. |
rafecolton
left a comment
There was a problem hiding this comment.
Primary change LGTM. Looks like there's an unrelated change to the Mobile-Expensify submodule. Will you please merge main and update your local submodule to ensure that change is not present? Ok to force push to your branch for this fix if you prefer
Done, thanks for catching that up! |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/rafecolton in version: 9.1.17-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.1.17-1 🚀
|
PR
#temp
Explanation of Change
In some cases
ReimbursementAccountPageis not properly initialized and this is because of concurrentOnyx.mergeaction anduseOnyxsubscription. It results inundefineddefault object passed to forms. This change ensures, thatMergeis finished beforeuseOnyxis called.Fixed Issues
$ #58369 (comment)
PROPOSAL: #58369 (comment)
Tests
Offline tests
N/A
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop