-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: on refresh entered details are not shown #57373
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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