redux-async-await
redux middleware deal with es7 async/await syntax action and promise action
install
npm i -S redux-async-await
usage
// apply middleware;;const store = createStoreyourRootReducer; ------------// **actions.js**// use async/await{ const data = await return type: 'GET_USERINFO' data }{ return } ----------------// dispatchtry const data = await store // if resolve, data === action.data catche console // if reject