Add back isInitialLoad to session (#2155)
This commit is contained in:
parent
6b3eb401b0
commit
97b54b51c6
3 changed files with 16 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue