-
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
Subscribe to Pusher only when it's initialized #53751
Subscribe to Pusher only when it's initialized #53751
Conversation
cc @mountiny |
🚧 @mountiny has triggered a test build. You can view the workflow run here. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-12-09.at.8.57.02.PM.movAndroid: mWeb ChromeScreen.Recording.2024-12-09.at.8.54.50.PM.moviOS: NativeScreen.Recording.2024-12-09.at.8.54.08.PM.moviOS: mWeb SafariScreen.Recording.2024-12-09.at.8.45.41.PM.movMacOS: Chrome / SafariScreen.Recording.2024-12-09.at.8.31.47.PM.movMacOS: DesktopScreen.Recording.2024-12-09.at.8.39.20.PM.mov |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
@allroundexperts what is your ETA for the checklist? |
5 minutes 😄 |
counting |
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.
Works good!
Seems like you made 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.
makes sense to me, all yours @amyevans
Chatted with Amy briefly and I can go ahead |
✋ 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.74-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.0.74-8 🚀
|
Explanation of Change
It may happen that we subscribe to Pusher channel before Pusher finished initialisation. Pusher is initialised in
AuthScreens
. We subscribe to it across the app, for example onReportScreen
. OpeningReportScreen
directly (for example through deep link) may result in crash with error:fatal Exception: com.facebook.react.common.JavascriptException: Error: TaskQueue: Error with task : [Pusher] instance not found. Pusher.subscribe() most likely has been called before Pusher.init(), ...
. Thanks to this change we are sure that in the moment we subscribe to Pusher it's initialisation is already finished.Fixed Issues
$ #53752
PROPOSAL: N/A
Link to slack conversation
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.No visual changes are made so there are no recordings.
Screenshots/Videos
Android: Native
N/A
Android: mWeb Chrome
N/A
iOS: Native
N/A
iOS: mWeb Safari
N/A
MacOS: Chrome / Safari
N/A
MacOS: Desktop
N/A