You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
475 B
8 lines
475 B
2 years ago
|
import { combineReducers } from 'redux';
|
||
|
import persistReducer from './persistReducer';
|
||
|
import autoMergeLevel2 from './stateReconciler/autoMergeLevel2';
|
||
|
// combineReducers + persistReducer with stateReconciler defaulted to autoMergeLevel2
|
||
|
export default function persistCombineReducers(config, reducers) {
|
||
|
config.stateReconciler = config.stateReconciler === undefined ? autoMergeLevel2 : config.stateReconciler;
|
||
|
return persistReducer(config, combineReducers(reducers));
|
||
|
}
|