async-library/react-async
async-library/react-async has 2,138 GitHub stars and 86 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-07 22:54 UTC. Last push 2026-10-27.
🍾 Flexible promise-based React data loader
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalReact 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.
- Zero dependencies
- Works with promises, async/await and the Fetch API
- Now with experimental Suspense support
- Choose between Render Props, Context-based helper components or the
useAsyncanduseFetchhooks - Debug and develop every part of the loading sequence with the React Async DevTools
- Provides convenient
isPending,startedAt,finishedAt, et al metadata - Provides
cancelandreloadactions - Automatic re-run using
watchorwatchFnprop - Accepts
onResolve,onRejectandonCancelcallbacks - Supports abortable fetch by providing an AbortController
- Supports optimistic updates using
setData - Supports server-side rendering through
initialValue - Written in TypeScript, ships with type definitions
- Works well in React Native too!
Upgrading to v9
Version 9 comes with a minor breaking change. See Upgrading for details.
Documentation
Getting started
API
Guide
Contributing
Contributors
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
Similar projects
Explore related projects
freeCodeCamp/freeCodeCamp
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
458,738 starsdonnemartin/system-design-primer
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
377,299 starsreact/react
The library for web and native user interfaces.
252,399 starsvuejs/vue
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
212,630 stars