resources/assets/js/app-v1/utils/redux/requests/reducer.js
/**
 * addFailedRequestHandler is called in the event of a request failing. It saves the action under
 * the key of the requestType.
 */
addFailedRequestHandler is called in the event of a request failing. It saves the action under
the key of the requestType.
addFailedRequestHandler is called in the event of a request failing . It saves the action under the key of the requestType .
function addFailedRequestHandler(state, action) {
  return {
    ...state,
    failed: {
      ...state.failed,
      [action.meta.requestType]: action,
    },
  };
}
function addFailedRequestHandler ( state , action ) { return { ... state , failed : { ... state . failed , [ action . meta . requestType ] : action , } , } ; }
addFailedRequestHandler is called in the event of a request failing.
addFailedRequestHandler is called in the event of a request failing .