Abstract
Abstract
Readonly
errorEmits the error if one is thrown by the request. Otherwise undefined
Abstract
Readonly
failedEmits true if the request failed
Abstract
Readonly
loadingEmits true when the request is running
Abstract
Readonly
request$The underlying request
Abstract
Readonly
resultThe result of the request, or undefined when unresolved
Abstract
Readonly
result$The result of the request
Abstract
cancelAbstract
catchAbstract
finallyAbstract
thenPerform actions when the request finishes
Action to perform on successful resolution
Optional
onError: ((error: Error) => void)Action to perform on error
A class representing the state of a request