-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Pick only params from route before passing them to screen #44531
Pick only params from route before passing them to screen #44531
Conversation
@jnowakow should I have been assigned to this? Looks like its still WIP and not linked to a current issue? Should I unassign myself? |
LGTM! 🎸 |
@mountiny it's ready for review 🎉 |
Automation seems to have failed in requesting a review from me; I am starting to review the PR. |
@jnowakow Workspace Name page is still blinks for me. workspace-profile-flicker.mov |
Hey @jnowakow If the issue is not happening for you, then we can test it on adhoc builds, as the issue is happening for me every time. |
@jayeshmangwani can we trigger adhoc builds? It works fine for me: workspace.mov |
@mountiny can we please run adhoc builds here? |
Although it is not reproducing for you, let me add a video of all the steps with console logs of ProfilePage re-rendering. This might help in reproducing the issue. Workspace-Profile-Page-Re-Render.mov |
@jayeshmangwani I'm able to reproduce both on main and on my branch. I'll try to debug it today, however tomorrow is my last day at work before longer break so if I don't manage to fix it today what about merging this PR and opening another issue for this particular one? |
@mountiny what's your suggestion on this? If Jan doesn't manage to fix the issue for iOS by the end of today, should we merge this PR that fixes the issue for web and open another issue for iOS? |
Ok, I found the place that is breaking. It's fault of |
Thanks for the update! 🎉 |
@jayeshmangwani I just removed |
Maybe this will help with the rerender issue #45335 |
@mountiny, you're right - it seems to fix the issue |
I'm reverting last commit then |
d588870
to
ee5cb87
Compare
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid.movAndroid: mWeb ChromemWeb-chrome.moviOS: NativeiOS.moviOS: mWeb SafarimWeb-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
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.
Tests well. Not seeing any flicker on the members page or any workspace subpages.
Not sure why tests are failing here. They are working fine for me locally. Maybe we need to merge the main branch and push the code here, as Jan is on break from work. @staszekscp Please help merge the main branch here. |
I will take a look at this later today, I also work with SWM and with @staszekscp |
hey @jayeshmangwani I merged newest main and all the checks are passing 🚀 |
Merged newest main, solved conflicts, tested the flow on web only and I see no screen blinking as expected. |
@mountiny All yours. Would you take a look at the PR? |
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.
Thanks, I got one question
// THOSE FUNCTIONS ARE COPIED FROM react-navigation/core IN ORDER TO AVOID PATCHING | ||
// THAT'S THE REASON WHY ESLINT IS DISABLED |
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.
@Kicu @adamgrzybowski Is it suggested to use this code permanently? Why can we not use this from react-navigation? Is it not exposed or did we need to make some changes to this method? If we cannot get this merged upstream, can we find a different way so we avoid duplicating this?
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.
it's not exposed. We can ask somebody from react-navigation to expose it.
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.
✋ 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/mountiny in version: 9.0.10-2 🚀
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.0.10-3 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.10-7 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.0.11-5 🚀
|
Details
The bug was caused by screen in
FullScreenNavigator
being unmounted and mounted when RHP modal was opened. It happened because in some cases RHProute
accepted more params thenroute
inFullScreenNavigator
. When RHP was opened those additional params where pushed back toFullScreenNavigator
which caused it to re-render.Fixed Issues
$ #44192
PROPOSAL: N/A
Tests
Offline tests
Same as in Tests
QA Steps
Same as in Tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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-web.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-web.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov