Changeset View
Changeset View
Standalone View
Standalone View
web/root.js
Show All 35 Lines | return { | ||||
notificationIdentityKeys: null, | notificationIdentityKeys: null, | ||||
}, | }, | ||||
}; | }; | ||||
}, | }, | ||||
}; | }; | ||||
const persistConfig = { | const persistConfig = { | ||||
key: 'root', | key: 'root', | ||||
storage, | storage, | ||||
whitelist: ['enabledApps', 'deviceID', 'draftStore', 'cryptoStore'], | whitelist: [ | ||||
'enabledApps', | |||||
'deviceID', | |||||
'draftStore', | |||||
'cryptoStore', | |||||
'notifPermissionAlertInfo', | |||||
], | |||||
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( | ||||
persistedReducer, | persistedReducer, | ||||
Show All 19 Lines |