actionWith 函数有什么用

#1
const actionWith = data => {
    const finalAction = Object.assign({}, action, data)
    delete finalAction[CALL_API]
    return finalAction
  }

  const [ requestType, successType, failureType ] = types
  next(actionWith({ type: requestType }))

  return callApi(endpoint, schema).then(
    response => next(actionWith({
      response,
      type: successType
    })),
    error => next(actionWith({
      type: failureType,
      error: error.message || 'Something bad happened'
    }))
  )

直接 next({ type: requestType }) 不一样?
反正 delete finalAction[CALL_API] 删除了穿过来的 action[CALL_API].

#2

哥哥知道了…
从整个生命周期来看就好了…