From 0ea7152f5c64895a5f7bf34675df9e305a8548d1 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 21 Jan 2026 22:17:13 -0600 Subject: [PATCH] OK nav context is not working, todo --- src/view/shell/createNativeStackNavigatorWithAuth.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/view/shell/createNativeStackNavigatorWithAuth.tsx b/src/view/shell/createNativeStackNavigatorWithAuth.tsx index 6ce2dd3eef..e5a9e0a636 100644 --- a/src/view/shell/createNativeStackNavigatorWithAuth.tsx +++ b/src/view/shell/createNativeStackNavigatorWithAuth.tsx @@ -47,6 +47,8 @@ type NativeStackNavigationOptionsWithAuth = NativeStackNavigationOptions & { requireAuth?: boolean } +let prevActiveRouteName: string | undefined + function NativeStackNavigator({ id, initialRouteName, @@ -115,10 +117,6 @@ function NativeStackNavigator({ const {setShowLoggedOut} = useLoggedOutViewControls() const {isMobile} = useWebMediaQueries() const {leftNavMinimal} = useLayoutBreakpoints() - const prevActiveRouteName = React.useRef(undefined) - React.useEffect(() => { - prevActiveRouteName.current = activeRoute.name - }, [activeRoute.name]) if (!hasSession && (activeRouteRequiresAuth || IS_NATIVE)) { return @@ -157,7 +155,7 @@ function NativeStackNavigator({