async-dispatch middleware
async-dispatch is a middleware can be added with no time to privilage the asynchronous server requests into your Redux store
For more informatiom about the future of redux-logger, check out the discussion here.
Table of contents
Install
npm i --save async-dispatch
Usage
;;; const store = ;// Note passing middleware as the third argument requires redux@>=3.1.0
Then applying this middleware is simple as
const LoginReducer = { //actionTypes.LOGIN ; return ...state ;})
Meanwhile you are leveraging your store as usual as you used to do
const mapDispatchToProps = { return } //Inside your component { return props; }
To Do
- Adding typeScript types
License
MIT