Changeset View
Changeset View
Standalone View
Standalone View
native/redux/persist.js
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | const persistBlacklist = [ | ||||
'dimensions', | 'dimensions', | ||||
'draftStore', | 'draftStore', | ||||
'connectivity', | 'connectivity', | ||||
'deviceOrientation', | 'deviceOrientation', | ||||
'frozen', | 'frozen', | ||||
'threadStore', | 'threadStore', | ||||
'storeLoaded', | 'storeLoaded', | ||||
'dbOpsStore', | 'dbOpsStore', | ||||
'syncedMetadataStore', | |||||
]; | ]; | ||||
function handleReduxMigrationFailure(oldState: AppState): AppState { | function handleReduxMigrationFailure(oldState: AppState): AppState { | ||||
const persistedNonUserSpecificFields = nonUserSpecificFieldsNative.filter( | const persistedNonUserSpecificFields = nonUserSpecificFieldsNative.filter( | ||||
field => !persistBlacklist.includes(field) || field === '_persist', | field => !persistBlacklist.includes(field) || field === '_persist', | ||||
); | ); | ||||
const stateAfterReset = resetUserSpecificState( | const stateAfterReset = resetUserSpecificState( | ||||
oldState, | oldState, | ||||
▲ Show 20 Lines • Show All 1,106 Lines • Show Last 20 Lines |