about summary refs log tree commit diff
path: root/src/App.web.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-12-07 12:25:55 -0600
committerGitHub <noreply@github.com>2023-12-07 10:25:55 -0800
commit261a935747019d21981a8f3cf0cfd7d83b320cde (patch)
tree5e2f20aeb6e8f257209b10632bf573f9654714dc /src/App.web.tsx
parenta0b9fd799b44ba9d7e81cadb089fb0fda636e3b3 (diff)
downloadvoidsky-261a935747019d21981a8f3cf0cfd7d83b320cde.tar.zst
More session improvements (#2129)
* More session improvements

* Drop resume session retries from 3 to 1

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
Diffstat (limited to 'src/App.web.tsx')
-rw-r--r--src/App.web.tsx12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/App.web.tsx b/src/App.web.tsx
index e29eec0dc..ef172705e 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 {isInitialLoad, currentAccount} = useSession()
+  const {currentAccount} = useSession()
   const {resumeSession} = useSessionApi()
   const colorMode = useColorMode()
 
@@ -40,16 +40,6 @@ function InnerApp() {
     resumeSession(account)
   }, [resumeSession])
 
-  // show nothing prior to init
-  if (isInitialLoad) {
-    // TODO add a loading state
-    return null
-  }
-
-  /*
-   * Session and initial state should be loaded prior to rendering below.
-   */
-
   return (
     <React.Fragment
       // Resets the entire tree below when it changes: