Optional
delayOptional
immediateExecute the promise right after the function is invoked. Will apply the delay if any.
When set to false, you will need to execute it manually.
Optional
onCallback when error is caught.
Optional
onCallback when success is caught.
Optional
resetSets the state to initialState before executing the promise.
This can be useful when calling the execute function more than once (for example, to refresh data). When set to false, the current state remains unchanged until the promise resolves.
Optional
throwAn error is thrown when executing the execute function
Delay for the first execution of the promise when "immediate" is true. In milliseconds.