export function loadCustomers()

in src/actions/customerActions.js [24:33]


export function loadCustomers() {
    return function(dispatch) {
        dispatch(loadCustomersRequest());
        return customerApi.getAllCustomers().then(customers => {
            dispatch(loadCustomersSuccess(customers));
        }).catch(error => {
            throw (error);
        });
    };
}