-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Revert hotfix: Move again to avoid listener still active #25424
Revert hotfix: Move again to avoid listener still active #25424
Conversation
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-08-18.at.1.38.39.AM.movMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
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.
Sorry not finding this console error earlier.
All yours @bondydaa
don't sweat it! we all miss stuff, part of being human. |
Congrats, that’s your 5th PR merged! 🎉 Do you know about the ContributorPlus role? It’s an opportunity to earn more in the Expensify Open Source community. Keep up the great work - thanks! |
do we need to worry about CP'ing this? i'm 50/50 on it, don't think we necessarily need to but also don't need to ship code with the console warning/error. |
Well since the logic of focus was created precisely for it I don't see how it could turn into a real issue. Still, this does means open listeners which might consume some memory if there are users that use the application a lot. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
This should have been deployed in -3 version https://github.com/Expensify/App/actions/runs/5894270047 @daordonez11 can you confirm this is fixed in latest staging |
@mountiny I can confirm it is still happening in staging, probably his one wasn't CP'ed |
Intereting the build shows as successful but yeah its not in staging https://github.com/Expensify/App/blob/staging/src/components/Composer/index.js |
Revert hotfix: Move again to avoid listener still active (cherry picked from commit 332eeca)
@mountiny I can confirm it is now fixed in staging.new |
Perfect, thanks! |
🚀 Deployed to staging by https://github.com/bondydaa in version: 1.3.55-4 🚀
|
Details
Avoid listener still active regression from https://github.com/Expensify/App/pull/25419/files, Not sure why after migration when the component is unmounted
textInput.current
becomes undefined so the listener is not removed.Follow up for original PR.
Fixed Issues
$ #25409
PROPOSAL: #25409 (comment)
No issue, reported in comment #25409 (comment)
Tests
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
Web.no.console.error.-.8_17_2023.2_32_55.PM.webm
Mobile Web - Chrome
mweb_console_error_-_8_17_2023._2_34_02_pm.Original.mp4
Mobile Web - Safari
Desktop
iOS
Android