Async
Abstraction for async operations that can be hooked into React.
Last updated
Abstraction for async operations that can be hooked into React.
Last updated
Source code is hosted in GitHub
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:
Manually resolve async result, makes it available on the instance using getResult()
:
Cancel current async invocation:
Subscribe to state changes, the listener receives the same object that you get from getState()
: