From eb01e000dc715f731a8b48b387c192e7475bde11 Mon Sep 17 00:00:00 2001 From: G Date: Mon, 9 Sep 2024 17:20:00 +0000 Subject: [PATCH] wrapped the main navigator with a component that will take the current auth status and pass in to the navigation component so that it does not rerender until the state has changed --- App.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/App.tsx b/App.tsx index a0909e8..c15fc7f 100644 --- a/App.tsx +++ b/App.tsx @@ -1,6 +1,6 @@ import { ModalsManagerProvider } from "@/contexts/ModalsManagerContext"; import { UserAuthenticationContextProvider } from "@/contexts/UserAuthenticationContext"; -import AppMainStackNavigator from "@/navigations/AppMainStackNavigator"; +import { AppMainStackNavigatorAuthWrapper } from "@/navigations/AppMainStackNavigator"; import theme from "@/themes/Theme"; import ProvideQueryClient from "@components/providers_wrappers/ProvideQueryClient"; import { LOG } from "@logger"; @@ -23,13 +23,7 @@ export default function App() { - {/* */} - {/* - - - */} - - {/* */} + -- libgit2 0.27.1