is a function that takes an action, depending on the action type or action payload, the middleware can pass that action, manipulate that action, stop it or logs it. It's like a door man - he decides who is passing through it.
Middleware decides who is going to reducers.
npm module redux-promise - helps to do AJAX request with Redux, its unwraps the data for us without dealing with any callbacks, it looks almost like a synchronous request.
When the action have Promise , redux-promise unwraps the data which goes to reducers.
What is Middleware?
npm module redux-promise - helps to do AJAX request with Redux, its unwraps the data for us without dealing with any callbacks, it looks almost like a synchronous request.
When the action have Promise , redux-promise unwraps the data which goes to reducers.