code: function errorsByQuery(state = {}, { meta, payload, type }) {
    switch (type) {
      case ERROR:
      case LISTENER_ERROR:
        return {
          ...state,
          [getQueryName(meta)]: payload,
        };
      case CLEAR_ERROR:
        return {
          ...state,
          [getQueryName(meta)]: null,
        };
      default:
        return state;
    }
  }
docs: Reducer for errors state. Changed by `ERROR`
  and `CLEAR_ERRORS` actions.
  @param  {Object} [state=[]] - Current authError redux state
  @param  {Object} action - Object containing the action that was dispatched
  @param  {String} action.type - Type of action that was dispatched
  @return {Object} Profile state after reduction