State persistence: handling stale routes in react‑navigation
When a React Navigation app restarts, the navigator can be hydrated from a persisted state that was captured via onStateChange . This feature is documented in v6 and is intended to preserve the user’s navigation history across sessions. However, if the persisted state contains routes that are no longer declared in the current navigator configuration, the lib