about summary refs log tree commit diff
path: root/src/App.native.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-12-09 17:10:12 -0600
committerGitHub <noreply@github.com>2023-12-09 15:10:12 -0800
commit97b54b51c6580737a561b48125af2884b23548f3 (patch)
tree291cfd18567bb1387523824bbe217bec10dffab0 /src/App.native.tsx
parent6b3eb401b04ee442005a9690dcf90e16d46c35e0 (diff)
downloadvoidsky-97b54b51c6580737a561b48125af2884b23548f3.tar.zst
Add back isInitialLoad to session (#2155)
Diffstat (limited to 'src/App.native.tsx')
-rw-r--r--src/App.native.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/App.native.tsx b/src/App.native.tsx
index 538e9b32d..d11d05e70 100644
--- a/src/App.native.tsx
+++ b/src/App.native.tsx
@@ -39,7 +39,7 @@ SplashScreen.preventAutoHideAsync()
 
 function InnerApp() {
   const colorMode = useColorMode()
-  const {currentAccount} = useSession()
+  const {isInitialLoad, currentAccount} = useSession()
   const {resumeSession} = useSessionApi()
 
   // init
@@ -53,6 +53,9 @@ function InnerApp() {
     resumeSession(account)
   }, [resumeSession])
 
+  // wait for session to resume
+  if (isInitialLoad) return null
+
   return (
     <React.Fragment
       // Resets the entire tree below when it changes: