fix: Members are unselected when refresh Add message page and go back#51227
Conversation
|
@alitoshmatov 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] |
|
Bump @alitoshmatov |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeinvite-android.movAndroid: mWeb ChromeiOS: Nativeinvite-ios.mp4iOS: mWeb Safariinvite-safari.mp4MacOS: Chrome / Safariinvite-web.movMacOS: Desktopinvite-desktop.mov |
|
To fix the changed files check, can we please refactor to useOnyx too? |
|
I just removed withOnyx |
|
✋ 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/neil-marcellini in version: 9.0.60-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.0.60-3 🚀
|
| const unsubscribe = navigation.addListener('beforeRemove', () => { | ||
| Member.setWorkspaceInviteMembersDraft(route.params.policyID, {}); | ||
| }; |
There was a problem hiding this comment.
From the Bug Zero Checklist of #52479: this change raises an issue where the draft value is being cleared. The updated solution for this is to clear the draft value only when starting a new flow.
Details
Fixed Issues
$ #49256
PROPOSAL: #49256 (comment)
Tests
Offline tests
QA Steps
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
Screen.Recording.2024-10-30.at.09.56.56.mov
Android: mWeb Chrome
Screen.Recording.2024-10-30.at.09.54.54.mov
iOS: Native
Screen.Recording.2024-10-30.at.09.52.13.mov
iOS: mWeb Safari
Screen.Recording.2024-10-30.at.09.53.43.mov
MacOS: Chrome / Safari
Screen.Recording.2024-10-30.at.09.46.32.mov
MacOS: Desktop
Screen.Recording.2024-10-30.at.09.51.04.mov