4.2.1
版本发布时间: 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!