feat: prioritize loading latest selected items (#1930)

This commit is contained in:
Aman Harwara
2022-11-03 00:11:17 +05:30
committed by GitHub
parent 8c49ca5572
commit a6ef658dae
17 changed files with 409 additions and 150 deletions

View File

@@ -1,8 +1,11 @@
import { PersistedStateValue } from '../StatePersistence/StatePersistence'
export enum StorageKey {
AnonymousUserId = 'AnonymousUserId',
ShowBetaWarning = 'ShowBetaWarning',
ShowNoAccountWarning = 'ShowNoAccountWarning',
FilesNavigationEnabled = 'FilesNavigationEnabled',
MasterStatePersistenceKey = 'master-persistence-key',
}
export type StorageValue = {
@@ -10,6 +13,7 @@ export type StorageValue = {
[StorageKey.ShowBetaWarning]: boolean
[StorageKey.ShowNoAccountWarning]: boolean
[StorageKey.FilesNavigationEnabled]: boolean
[StorageKey.MasterStatePersistenceKey]: PersistedStateValue
}
export const storage = {