Add back isInitialLoad to session (#2155)

This commit is contained in:
Eric Bailey 2023-12-09 17:10:12 -06:00 committed by GitHub
parent 6b3eb401b0
commit 97b54b51c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 2 deletions

View file

@ -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: