fix: on refresh entered details are not shown#57373
fix: on refresh entered details are not shown#57373danieldoglas merged 5 commits intoExpensify:mainfrom
Conversation
| // eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps -- we want to run the hook only once to escape unexpected feed change | ||
| const selectedFeed = useMemo(() => getSelectedFeed(lastSelectedFeed, cardFeeds), []); | ||
|
|
||
| const selectedFeed = useMemo(() => getSelectedFeed(lastSelectedFeed, cardFeeds), [cardFeeds, lastSelectedFeed]); |
There was a problem hiding this comment.
@nkdengineer, could you clarify one detail please, is it safe to add the onyx values lastSelectedFeed and cardFeeds to the dependencies? You had mentioned in the proposal the use of isLoadingOnyxValue. I'm not sure what unexpected feed change they were expecting as they left the dependencies empty. Thank you.
There was a problem hiding this comment.
@brunovjk To avoid adding many isLoadingOnyxValue dependency in this useMemo, I will go with the alternative solution. That also fixes the unexpected feed change bug and the deeplink bug.
|
@nkdengineer the initial issue seems fine to me, but I'd like to check with the design team if it would be necessary to work on an animation/loading on the "Allow deleting transactions" toggle: 57373_web_desktop.movHowever, the deeplink issue still doesn't seem super to me. If I log in in a different browser, or clear the cache, the information doesn't load, until I navigate back to Screen.Recording.2025-03-01.at.11.23.34.movThanks a lot. |
Yeah, we will need another change from |
|
Ok, I'm traveling today, I will review ASAP |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb Chrome57373_android_web.moviOS: Native57373_ios_native.moviOS: mWeb Safari57373_ios_web.movMacOS: Chrome / Safari57373_web_chrome.movMacOS: Desktop57373_web_desktop.mov |
|
✋ 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/danieldoglas in version: 9.1.10-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.10-6 🚀
|
Explanation of Change
Fixed Issues
$ #56746
PROPOSAL: #56746 (comment)
Tests
Offline tests
Same as tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
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.mov
Android: mWeb Chrome
android-mweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov