ReadonlyerrorEmits the error if one is thrown by the request. Otherwise undefined
ReadonlyfailedEmits true if the request failed
ReadonlyloadingEmits true when the request is running
Readonlyrequest$The underlying request
ReadonlyresultThe result of the request, or undefined when unresolved
Readonlyresult$The result of the request
Cancel a running request
Optionalerror: string | Error | (() => Error)Optionally provide a custom error to throw when cancelling the request
Perform an action if the request fails
Perform an action when the request finishes (Error or Success)
Subscribe to the underlying request Observable
Perform actions when the request finishes
Action to perform on successful resolution
OptionalonError: (error: Error) => voidAction to perform on error
A RequestState representing a pending async action