diff options
author | Eric Bailey <git@esb.lol> | 2023-12-09 17:10:12 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-09 15:10:12 -0800 |
commit | 97b54b51c6580737a561b48125af2884b23548f3 (patch) | |
tree | 291cfd18567bb1387523824bbe217bec10dffab0 /src/App.web.tsx | |
parent | 6b3eb401b04ee442005a9690dcf90e16d46c35e0 (diff) | |
download | voidsky-97b54b51c6580737a561b48125af2884b23548f3.tar.zst |
Add back isInitialLoad to session (#2155)
Diffstat (limited to 'src/App.web.tsx')
-rw-r--r-- | src/App.web.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/App.web.tsx b/src/App.web.tsx index ef172705e..6c67dc28b 100644 --- a/src/App.web.tsx +++ b/src/App.web.tsx @@ -30,7 +30,7 @@ import {Provider as UnreadNotifsProvider} from 'state/queries/notifications/unre import * as persisted from '#/state/persisted' function InnerApp() { - const {currentAccount} = useSession() + const {isInitialLoad, currentAccount} = useSession() const {resumeSession} = useSessionApi() const colorMode = useColorMode() @@ -40,6 +40,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: |