Navigation initialization console errors fix followup#72089
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #72089 +/- ##
==========================================
- Coverage 35.18% 35.18% -0.01%
==========================================
Files 3297 3297
Lines 108155 108095 -60
Branches 34549 34534 -15
==========================================
- Hits 38057 38030 -27
+ Misses 69912 69878 -34
- Partials 186 187 +1
📢 Thoughts on this report? Let us know! 🚀 New features to boost your workflow:
|
|
@abdulrahuman5196 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] |
|
Thank you. Will check on platforms in my morning |
|
@collectioneur I think we need to remove the issue mentioned #68676 since for tracking and payment purposes we might need to create new issue, since its old and closed issue |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-10-14.at.1.24.52.AM.movScreen.Recording.2025-10-14.at.1.26.52.AM.movAndroid: mWeb ChromeN/A iOS: HybridAppScreen.Recording.2025-10-14.at.1.12.52.AM.movScreen.Recording.2025-10-14.at.1.19.43.AM.moviOS: mWeb SafariN/A MacOS: Chrome / SafariScreen.Recording.2025-10-14.at.1.31.38.AM.movMacOS: DesktopN/A |
There was a problem hiding this comment.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @pecanoro
🎀 👀 🎀
C+ Reviewed
|
@pecanoro Kindly check on this as well - #72089 (comment) |
Sure, I will do that. But once the issue is created, I will add it back for tracking purposes 😄 |
|
✋ 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.31-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.2.31-2 🚀
|
|
Hi, @pecanoro Could you kindly create a new issue and link it here? It didn't auto create an issue. |
|
Issue: #73036 |
Explanation of Change
It’s a follow-up to this PR. I’ve found two other instances of navigationRef that cause console errors after the app is opened. I’ve added handling so that if navigationState isn’t ready yet, the function returns a default value (for example, undefined). At the moment, I haven’t found any other navigation initialization errors, so Android should now also be without errors.
Fixed Issues
$ #68676
Tests
Test 1
Test 2
Here is how navi initialization error looks:

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
Android: Native
Screen.Recording.2025-10-08.at.14.07.19.mov
Screen.Recording.2025-10-08.at.14.00.04.mov
iOS: Native
Screen.Recording.2025-10-08.at.14.23.13.mov
Screen.Recording.2025-10-08.at.14.24.42.mov