Fix card page reloads when refocused#48613
Conversation
|
@aimane-chnaif 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: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / Safariweb.movMacOS: Desktop |
|
@bernhardoj sometimes I am stuck here when first opening Expensify Cad page: Seems related to |
|
Hmm, probably related with #48835 |
There was a problem hiding this comment.
@bernhardoj infinite loading still shows after merging main (#48874 is merged). Tested on iOS
|
Asked in Slack here to get this going https://expensify.slack.com/archives/C01GTK53T8Q/p1725999139818019 |
|
I think I found the root cause. ios-fix.mov |
|
@aimane-chnaif Done |
|
Should hold on #48959 😄 cc @allgandalf |
|
Haha the culprit |
|
Done |
|
✋ 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/deetergp in version: 9.0.35-0 🚀
|
|
🚀 Deployed to production by https://github.com/grgia in version: 9.0.35-7 🚀
|


Details
The card page reloads when the page gets refocused.
Fixed Issues
$ #48172
PROPOSAL: #48172 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Prerequisite: a workspace with Expensify Card enabled
Open Workspace > Expensify Card
Press on the "Issue new card" button
Go back
Verify the card page doesn't reload
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4