You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alistair Blake edited this page May 18, 2019
·
1 revision
Redux Middleware
middleware can be used for a variety of things --It provides a third-party extension point between dispatching an action, and the moment it reaches the reducer.People use Redux middleware for logging, crash reporting, talking to an asynchronous API, routing, and more.
One of the benefits of Redux is that it makes state changes predictable and transparent. Every time an action is dispatched, the new state is computed and saved. The state cannot change by itself, it can only change as a consequence of a specific action. When something goes wrong, we can look back at our log, and figure out which action corrupted the state.