The error returned from the operation, if any. This will only be populated
if state === OperationState.Error
, and will be cleared each time the
operation is called.
The string name of the current operation running.
Convenience accessors, so users can write e.g. loginResult.pending
instead of loginResult.state === OperationState.Pending
The current state of the operation.
Generated using TypeDoc
Represents the state and result of a call to a hook operation. This is designed to allow the user to update their UI accordingly without needing to store separate React state to keep track of pending/error states etc.