This effect cancels the polling flow.
This effect is a multi-target effect - It modifies more than one target at the same time.
It will:
- Set
${action.target}IsRetrying
asfalse
- Set
${action.target}Loading
asfalse
- Set
${action.target}RetryCount
as0
- Set
${action.target}Error
asnull
- Set
${action.target}TimeoutID
asnull
Example:
const reducerDescription = {
'CANCEL': onCancel()
};