プロジェクト
GitHubで見る
async-library/react-async
概要
🍾 Promiseベースの柔軟なReactデータローダー
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 0
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル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.
- 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
関連プロジェクトを探す
読み込み中…
