about summary refs log tree commit diff
path: root/src/state/session/types.ts
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-05-01 17:26:33 +0100
committerGitHub <noreply@github.com>2024-05-01 17:26:33 +0100
commitdf9af92eb2925d8a3e3b01b26e237bd4c832a232 (patch)
treea350255d7eeb3f10cd2199e0cadf8a9b8adecc5a /src/state/session/types.ts
parenta6061489ff2381d842687e82de80fa35c361e119 (diff)
downloadvoidsky-df9af92eb2925d8a3e3b01b26e237bd4c832a232.tar.zst
[Session] Use flag on state for persistence (#3793)
* Move isInitialLoad and isSwitchingAccounts out of main state

* Remove spreads, order object keys

* Track need to persist on state object

* Reoder state variables
Diffstat (limited to 'src/state/session/types.ts')
-rw-r--r--src/state/session/types.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/state/session/types.ts b/src/state/session/types.ts
index 3c7e7d253..fbfac82e9 100644
--- a/src/state/session/types.ts
+++ b/src/state/session/types.ts
@@ -3,13 +3,11 @@ import {PersistedAccount} from '#/state/persisted'
 
 export type SessionAccount = PersistedAccount
 
-export type SessionState = {
-  isInitialLoad: boolean
-  isSwitchingAccounts: boolean
+export type SessionStateContext = {
   accounts: SessionAccount[]
   currentAccount: SessionAccount | undefined
-}
-export type SessionStateContext = SessionState & {
+  isInitialLoad: boolean
+  isSwitchingAccounts: boolean
   hasSession: boolean
 }
 export type SessionApiContext = {