ReadonlycancelledEmits true when the RequestState has been cancelled by a consumer, otherwise emits false
Readonlycancelled$Emits true when the RequestState has been cancelled by a consumer
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
Create a Readonly version of the RequestState
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)
Set the RequestState to an Error state
The error for the RequestState
Set the RequestState to a completed state with a given value
The value to emit
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 manually populated RequestState