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)
Sun, Nov 3, 4:52 AM
Unknown Object (File)
Fri, Nov 1, 4:46 PM
Unknown Object (File)
Fri, Nov 1, 4:46 PM
Unknown Object (File)
Fri, Nov 1, 4:45 PM
Unknown Object (File)
Fri, Nov 1, 4:22 PM
Unknown Object (File)
Oct 17 2024, 11:17 AM
Unknown Object (File)
Oct 16 2024, 2:33 PM
Unknown Object (File)
Oct 16 2024, 1:58 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
Branch
inka/nux_crash
Lint
No Lint Coverage
Unit
No Test Coverage