Calling this redux#ActionCreator with an argument will return a PayloadAction of type T with a payload of P. Calling it without an argument will return a PayloadAction with a payload of undefined.
T
P
undefined
Optional
Calling this redux#ActionCreator with an argument will return a PayloadAction of type
Twith a payload ofP. Calling it without an argument will return a PayloadAction with a payload ofundefined.