Other Action Types
Learn to use other action types in Redux.
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 ...