Changeset View
Changeset View
Standalone View
Standalone View
web/root.js
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | const persistConfig = { | ||||
key: 'root', | key: 'root', | ||||
storage, | storage, | ||||
whitelist: [ | whitelist: [ | ||||
'enabledApps', | 'enabledApps', | ||||
'deviceID', | 'deviceID', | ||||
'draftStore', | 'draftStore', | ||||
'cryptoStore', | 'cryptoStore', | ||||
'notifPermissionAlertInfo', | 'notifPermissionAlertInfo', | ||||
'commServicesAccessToken', | |||||
], | ], | ||||
migrate: (createMigrate(migrations, { debug: isDev }): any), | migrate: (createMigrate(migrations, { debug: isDev }): any), | ||||
version: 1, | version: 1, | ||||
}; | }; | ||||
declare var preloadedState: AppState; | declare var preloadedState: AppState; | ||||
const persistedReducer = persistReducer(persistConfig, reducer); | const persistedReducer = persistReducer(persistConfig, reducer); | ||||
const store: Store<AppState, Action> = createStore( | const store: Store<AppState, Action> = createStore( | ||||
Show All 20 Lines |