about summary refs log tree commit diff
path: root/src/App.native.tsx
diff options
context:
space:
mode:
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: