fetch.js 453 Bytes
import reduceReducers from 'reduce-reducers';
import * as types from '../actionTypes';
import { typeToLowerCase, reducerFactory } from '../../utils/commonUtils';

const initialState = {
    [typeToLowerCase(types.FETCH_FAIL)]: false,
    [typeToLowerCase(types.FETCH_SUBMITTING)]: false,
    [typeToLowerCase(types.FETCH_SUCCESS)]: false,
    [typeToLowerCase(types.FETCH_FORM_NAME)]: ''
};


export default reduceReducers(initialState, reducerFactory);