reset drawerIsReady promise when BaseDrawerNavigator unmounts#15500
Conversation
|
@yuwenmemon @thesahindia One of you needs to 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/VideosWebScreen.Recording.2023-02-27.at.11.03.03.PM.movMobile Web - ChromeScreen.Recording.2023-02-27.at.11.31.47.PM.movMobile Web - SafariScreen.Recording.2023-02-27.at.11.18.52.PM.movDesktopN/A iOSN/A AndroidN/A |
thesahindia
left a comment
There was a problem hiding this comment.
Looks good and tests well
cc: @yuwenmemon
yuwenmemon
left a comment
There was a problem hiding this comment.
Looks good but I think we could update the comment for the call to resetDrawerIsReadyPromise
| } | ||
|
|
||
| componentWillUnmount() { | ||
| // We need to reset the isDrawerReady promise so that the delay remains in effect when this component is remounted. |
There was a problem hiding this comment.
What delay exactly? Can we make this more descriptive?
|
|
||
| componentWillUnmount() { | ||
| // We need to reset the isDrawerReady promise so that the delay remains in effect when this component is remounted. | ||
| // For example, navigate from OldDot to NewDot with a different account. |
There was a problem hiding this comment.
Similarly, this description is a bit vague. "Navigate from OldDot to NewDot with a different account" ...and?
@yuwenmemon , yeh, how about this new version? 😄 |
yuwenmemon
left a comment
There was a problem hiding this comment.
Much better now, thanks!
Performance Comparison Report 📊Significant Changes To Duration
Show details
Meaningless Changes To DurationShow entries
Show details
|
|
@Expensify/mobile-deployers 📣 Please look into this performance regression as it's a deploy blocker. |
|
🚀 Deployed to staging by https://github.com/yuwenmemon in version: 1.2.77-1 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.2.77-4 🚀
|
Details
Fixed Issues
$ #14177
PROPOSAL: #14177 (comment)
Tests
console.dir(t.replace('https://staging.new.expensify.com', ''))in console to get the/transition...path part, create a new tab and typelocalhost:8080and append the transition path part and then open this url.Offline tests
N/A (This test needs to be online)
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
web.mov
Mobile Web - Chrome
android-web.mov
Mobile Web - Safari
ios-web.mov
Desktop
Feature not yet implemented in the desktop app.iOS
Feature not yet implemented in the native app.Android
Feature not yet implemented in the native app.