Redux Middleware: Behind the Scenes

Redux is an exciting new JavaScript library by Dan Abramov designed to simplify state management in JavaScript applications. Redux middleware is an important Redux feature providing a “third-party extension point between dispatching an action, and the moment it reaches the store”. Simply put, it let’s us jump in the middle of all dispatched Redux actions, providing anything from simple logging to exception handling to properly processing asynchronous actions. If a dispatched action is the starting line and the application store is the final destination, middleware is the traffic cop(s) along the path ensuring each action is properly vetted.
Continue reading…