Subscribe to Pusher only when it's initialized#53751
Merged
mountiny merged 2 commits intoExpensify:mainfrom Dec 9, 2024
Merged
Subscribe to Pusher only when it's initialized#53751mountiny merged 2 commits intoExpensify:mainfrom
mountiny merged 2 commits intoExpensify:mainfrom
Conversation
Contributor
Author
|
cc @mountiny |
Contributor
|
🚧 @mountiny has triggered a test build. You can view the workflow run here. |
Contributor
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 |
Contributor
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
Contributor
|
@allroundexperts what is your ETA for the checklist? |
Contributor
5 minutes 😄 |
Contributor
|
counting |
Contributor
|
Seems like you made it |
Contributor
|
Chatted with Amy briefly and I can go ahead |
Contributor
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
52 tasks
Contributor
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.74-0 🚀
|
Contributor
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.0.74-8 🚀
|
50 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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. OpeningReportScreendirectly (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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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.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