Page MenuHomePhabricator

[native] Fix crash in NUX
ClosedPublic

Authored by inka on Sep 30 2024, 5:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 18, 9:20 AM
Unknown Object (File)
Wed, Dec 18, 9:20 AM
Unknown Object (File)
Wed, Dec 18, 9:20 AM
Unknown Object (File)
Wed, Dec 18, 9:20 AM
Unknown Object (File)
Wed, Dec 11, 12:15 PM
Unknown Object (File)
Mon, Dec 9, 9:34 PM
Unknown Object (File)
Sun, Nov 24, 12:19 PM
Unknown Object (File)
Nov 21 2024, 8:54 PM
Subscribers

Details

Summary

issue: ENG-9375
If a dev kills the app while it is showing the NUX, then after they reopen they will get this error: "button should be registered with nuxTipContext"
This happens because for dev we remember the navigation state. When the navigation state is rehydrated, the buttons have not yet been mounted, so they are not registered with the context, resulting in the error.
Because this is for dev only, and because we expect the NUX tips to only be shown at the start of the app over the chat list, I think we should just reset the nav state if NUX tips are present.

Test Plan

Created a new user -> saw the NUX tips -> navigated to a tip that points to a button -> closed the app -> opened the app
Before this resulted in an error on the screen. After this change the error doesn't appear. The user sees the chat list.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable