Preserving Route State When react-navigation resetToRoot Clears Navigation Stack
The resetToRoot(navigateTo) method replaces the entire navigation stack with a single root screen, discarding all intermediate routes. Because the root component is re‑mounted, its useEffect side effects are re‑executed, and on Android the system may briefly flash the previous screen before the new root renders. The primary objective is to verify whether any