diff options
author | dan <dan.abramov@gmail.com> | 2024-05-01 17:26:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-01 17:26:33 +0100 |
commit | df9af92eb2925d8a3e3b01b26e237bd4c832a232 (patch) | |
tree | a350255d7eeb3f10cd2199e0cadf8a9b8adecc5a /src/state/session/types.ts | |
parent | a6061489ff2381d842687e82de80fa35c361e119 (diff) | |
download | voidsky-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.ts | 8 |
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 = { |