DefaultActionHookState
Parameters
error required null
| ErrorPayload
Provides details about the error
isLoading required boolean
@returns
true
when the action is executing, false
when it finished its execution.
isSuccess required boolean
Returns true
if the action is successful.
isError required boolean
@depreacted
use !isSuccess
or !!error
instead