Changeset View
Changeset View
Standalone View
Standalone View
lib/reducers/master-reducer.js
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | ) { | ||||
} | } | ||||
} | } | ||||
const { draftStore, draftStoreOperations } = reduceDraftStore( | const { draftStore, draftStoreOperations } = reduceDraftStore( | ||||
state.draftStore, | state.draftStore, | ||||
action, | action, | ||||
); | ); | ||||
const { reportStore, reportStoreOperations } = reduceReportStore( | |||||
state.reportStore, | |||||
action, | |||||
newInconsistencies, | |||||
); | |||||
return { | return { | ||||
state: { | state: { | ||||
...state, | ...state, | ||||
navInfo: reduceBaseNavInfo(state.navInfo, action), | navInfo: reduceBaseNavInfo(state.navInfo, action), | ||||
draftStore, | draftStore, | ||||
entryStore, | entryStore, | ||||
loadingStatuses: reduceLoadingStatuses(state.loadingStatuses, action), | loadingStatuses: reduceLoadingStatuses(state.loadingStatuses, action), | ||||
currentUserInfo: reduceCurrentUserInfo(state.currentUserInfo, action), | currentUserInfo: reduceCurrentUserInfo(state.currentUserInfo, action), | ||||
threadStore, | threadStore, | ||||
userStore: reduceUserInfos(state.userStore, action), | userStore: reduceUserInfos(state.userStore, action), | ||||
messageStore, | messageStore, | ||||
updatesCurrentAsOf, | updatesCurrentAsOf, | ||||
urlPrefix: reduceURLPrefix(state.urlPrefix, action), | urlPrefix: reduceURLPrefix(state.urlPrefix, action), | ||||
calendarFilters: reduceCalendarFilters(state.calendarFilters, action), | calendarFilters: reduceCalendarFilters(state.calendarFilters, action), | ||||
notifPermissionAlertInfo: reduceNotifPermissionAlertInfo( | notifPermissionAlertInfo: reduceNotifPermissionAlertInfo( | ||||
state.notifPermissionAlertInfo, | state.notifPermissionAlertInfo, | ||||
action, | action, | ||||
), | ), | ||||
connection, | connection, | ||||
lifecycleState: reduceLifecycleState(state.lifecycleState, action), | lifecycleState: reduceLifecycleState(state.lifecycleState, action), | ||||
enabledApps: reduceEnabledApps(state.enabledApps, action), | enabledApps: reduceEnabledApps(state.enabledApps, action), | ||||
reportStore: reduceReportStore( | reportStore, | ||||
state.reportStore, | |||||
action, | |||||
newInconsistencies, | |||||
), | |||||
nextLocalID: reduceNextLocalID(state.nextLocalID, action), | nextLocalID: reduceNextLocalID(state.nextLocalID, action), | ||||
dataLoaded: reduceDataLoaded(state.dataLoaded, action), | dataLoaded: reduceDataLoaded(state.dataLoaded, action), | ||||
userPolicies: policiesReducer(state.userPolicies, action), | userPolicies: policiesReducer(state.userPolicies, action), | ||||
deviceToken: reduceDeviceToken(state.deviceToken, action), | deviceToken: reduceDeviceToken(state.deviceToken, action), | ||||
commServicesAccessToken: reduceServicesAccessToken( | commServicesAccessToken: reduceServicesAccessToken( | ||||
state.commServicesAccessToken, | state.commServicesAccessToken, | ||||
action, | action, | ||||
), | ), | ||||
}, | }, | ||||
storeOperations: { | storeOperations: { | ||||
draftStoreOperations, | draftStoreOperations, | ||||
threadStoreOperations, | threadStoreOperations, | ||||
messageStoreOperations, | messageStoreOperations, | ||||
reportStoreOperations, | |||||
}, | }, | ||||
}; | }; | ||||
} | } |