function fetchResources(url) {
  const { key, actionName } = getActionAndKeyFromUrl('FETCH', url);
  return (dispatch) => {
    requestWithOutPayload('GET', url, actionName)
    .then((res) => {
      const action = createActionWithPayload(actionName, key, res);
      dispatch(action);
    })
    .catch((err) => {
      dispatch(handleError(err));
    });
  };
}
/**
 * Figures out resource: ie. aspect or aspects, based on the url.
 * Dipatches GET request to the supplied url
 * On returned response, dispatch success or error handlers.
 *
 * @param {String} url A relative url: ie. '/aspects' or '/subjects'
 * or '/subjects/73edeac7-de73-41f6-bf99-33d4a5557434'
 */
Figures out resource: ie. aspect or aspects, based on the url.
Dipatches GET request to the supplied url
On returned response, dispatch success or error handlers.

@param {String} url A relative url: ie.
Figures out resource : ie . aspect or aspects based on the url . Dipatches GET request to the supplied url On returned response dispatch success or error handlers . @param { String } url A relative url : ie .
function fetchResources(url) {
  const { key, actionName } = getActionAndKeyFromUrl('FETCH', url);
  return (dispatch) => {
    requestWithOutPayload('GET', url, actionName)
    .then((res) => {
      const action = createActionWithPayload(actionName, key, res);
      dispatch(action);
    })
    .catch((err) => {
      dispatch(handleError(err));
    });
  };
}
function fetchResources ( url ) { const { key , actionName } = getActionAndKeyFromUrl ( 'FETCH' , url ) ; return ( dispatch ) => { requestWithOutPayload ( 'GET' , url , actionName ) . then ( ( res ) => { const action = createActionWithPayload ( actionName , key , res ) ; dispatch ( action ) ; } ) . catch ( ( err ) => { dispatch ( handleError ( err ) ) ; } ) ; } ; }
Figures out resource: ie.
Figures out resource : ie .