src/helpers.js
// This function check the reducer name from the action and instantiate a reducer
This function check the reducer name from the action and instantiate a reducer
This function check the reducer name from the action and instantiate a reducer
function createNamedWrapperReducer(reducerFunction) {
  return reducerName => (state, action) => {
    const { name } = action;
    const isInitializationCall = state === undefined;
    if (name !== reducerName && !isInitializationCall) return state;
    return reducerFunction(state, action);
  };
}
function createNamedWrapperReducer ( reducerFunction ) { return reducerName => ( state , action ) => { const { name } = action ; const isInitializationCall = state === undefined ; if ( name !== reducerName && ! isInitializationCall ) return state ; return reducerFunction ( state , action ) ; } ; }
This function check the reducer name from the action and instantiate a reducer
This function check the reducer name from the action and instantiate a reducer