Async Flow
You may enhance with . It is not required, but it lets you express asynchronous actions in a convenient way.
When the last middleware in the chain dispatches an action, it has to be a plain object. This is when the takes place.
Now that you've seen an example of what middleware can do in Redux, it's time to learn how it actually works, and how you can create your own. Go on to the next detailed section about Middleware.