Search⌘ K

Other Action Types

Explore how Redux middleware extends dispatch capabilities by handling various action types such as functions, promises, and errors. Learn to create custom middleware like nullMiddleware and understand redux-thunk's approach to asynchronous actions. This lesson helps you manage complex action flows for effective state management.

We'll cover the following...

Developers are usually taught that actions in Redux can only be objects, and that they must contain the type property. You will notice Error objects, functions, and promises being passed to dispatch().

The underlying rule is simple: our root reducer requires an object as an action, but our middleware has no such limits and is free to handle ...