What is Redux middleware?
Redux middleware is a mechanism that sits between dispatching an action and the moment it reaches the reducer. It allows you to intercept actions and execute custom logic, such as logging, asynchronous operations, or modifying actions before they reach the reducers.
Writing Custom middlewares in React Redux
Custom middleware in React Redux is like having a helper that can do things with actions before they’re handled by our app. It allows us to intercept actions and apply custom logic before they reach the reducers. In this article, we are going to discuss how it is done.
Table of Content
- What is Redux middleware?
- What is Custom Middleware?
- When to use Custom Middleware?
- Standard patterns to follow for creating custom middleware
- Rules to make compatible middleware