Use with Promises Resolved with Null Values
If a promise is resolved with a
undefinedvalue, the fullfilled action will not include a payload property. This is because actions describe changes in state. Consider the following two actions:
Both actions describe the same change in state. This is why, when you resolve with
undefined, the payload property is not included. It would be redundant to include it.