Handle promises with ease.
React component and hook for declarative promise resolution and data fetching. Makes it easy to handle every
state of the asynchronous process, without assumptions about the shape of your data or the type of request.
Use it with fetch, Axios or other data fetching libraries, even GraphQL.
useAsync and useFetch hooksisPending, startedAt, finishedAt, et al metadatacancel and reload actionswatch or watchFn proponResolve, onReject and onCancel callbackssetDatainitialValueUpgrading to v9
Version 9 comes with a minor breaking change. See Upgrading for details.
Thanks goes to these wonderful people (emoji key):
$ claude mcp add react-async \
-- python -m otcore.mcp_server <graph>