Navigation initialization console errors fix#71367
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
|
@ishpaul777 Please 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] |
|
reviewing now! |
|
Hi, I’ll double-check everything now |
|
@ishpaul777 changed approach, everything should be okay now! |
|
@ishpaul777 Yours again! |
|
on it! Thanks for bump! |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-10-07.at.12.27.07.AM.movAndroid: mWeb ChromeScreen.Recording.2025-10-07.at.1.05.02.AM.moviOS: HybridAppScreen.Recording.2025-10-07.at.12.07.01.AM-1.moviOS: mWeb SafariScreen.Recording.2025-10-07.at.12.10.43.AM.movMacOS: Chrome / SafariScreen.Recording.2025-10-07.at.12.01.41.AM.movMacOS: Desktop |
|
✋ 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/pecanoro in version: 9.2.27-0 🚀
|
|
HI @collectioneur . QA team doesn't use the simulator. We can check this PR only on Web and Desktop, not iOS app. Is it enough? |
|
Hi, I've checked ios and android and everything should be alright |
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.2.27-6 🚀
|

Explanation of Change
Most of the console errors with navigation were caused by the containerRef being called before it had finished initializing. I added early returns in all functions where it was used during the program’s initialization (in one case, I simply returned null from the function), and the errors are gone. They were appearing on iOS.
Fixed Issues
$ #68676
Tests
Offline tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)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.Screenshots/Videos
Screen.Recording.2025-09-26.at.16.08.51.mov