MyGit

4.2.1

pburtchaell/redux-promise-middleware

版本发布时间: 2017-05-15 23:06:05

pburtchaell/redux-promise-middleware最新发布版本:6.2.0(2023-12-28 03:07:18)

This release adds the default suffix types as module exports, as documented in the Introduction. This is useful for reducers.

import { PENDING, FULFILLED, REJECTED } from 'redux-promise-middleware';

export default function fooReducer(state = {}, action) {
  switch (action.type) {
    case `FOO_${FULFILLED}`:
      return ...
  }
}

Thanks to @piu130 for the PR!

相关地址:原始地址 下载(tar) 下载(zip)

查看:2017-05-15发行的版本