Async
Abstraction for async operations that can be hooked into React.
Last updated
Was this helpful?
Abstraction for async operations that can be hooked into React.
Last updated
Was this helpful?
Source code is hosted in
Seamless React integrations are shipped inside separate packages:
Create an observable async operation:
Create an observable async operation without the factory function:
Retrieve result from the last invocation:
Retrieve probable error from the last invocation:
Retrieve all the details in a single call, contains values like isRunning
, isCancelled
, result
, etc.:
Check if the async operation is being executed right now:
Check if the latest async invocation has been cancelled:
Check if the latest async invocation errored:
Invoke async operation:
Cancel current async invocation:
Manually resolve async result, makes it available on the instance using :
Subscribe to state changes, the listener receives the same object that you get from :