Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🍾 Flexible promise-based React data loader

License

NotificationsYou must be signed in to change notification settings

async-library/react-async

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Async
Handle promises with ease.


latest versionmontly downloadsminzipped sizelicense
circleci statustravis statuscode coveragecode qualityDeepScan grade
live examplesChromaticAll Contributors

React component and hook for declarative promise resolution and data fetching. Makes it easy to handle everystate of the asynchronous process, without assumptions about the shape of your data or the type of request.Use it withfetch, 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 theuseAsync anduseFetch hooks
  • Debug and develop every part of the loading sequence with the React Async DevTools
  • Provides convenientisPending,startedAt,finishedAt, et al metadata
  • Providescancel andreload actions
  • Automatic re-run usingwatch orwatchFn prop
  • AcceptsonResolve,onReject andonCancel callbacks
  • Supportsabortable fetch by providing an AbortController
  • Supports optimistic updates usingsetData
  • Supports server-side rendering throughinitialValue
  • Written in TypeScript, ships with type definitions
  • Works well in React Native too!

Upgrading to v9

Version 9 comes with a minor breaking change.SeeUpgrading for details.

Documentation

Getting started

API

Guide

Contributing

Contributors

Thanks goes to these wonderful people (emoji key):


Gert Hengeveld

💻👀💬

Khartir

💻📦

Lenz Weber

💻📦🤔

Avinash

👀📖

Fred K. Schott

🔧

Cedric van Putten

💻

Tom Shane

👀

Philip Peterson

💻

Sibelius Seraphini

👀

Jim Cummins

👀

Mihkel Sokk

👀

Jiří Brabec

💻

Andrii U

💡

Matthisk Heimensen

💻

Danny Hurlburt

🤔📖

Noel Yoo

⚠️💻🤔

Adam Ratcliffe

💻

Kent C. Dodds

💻

walter-ind

📖

Jacob Lee

💻

Youngrok Kim

💻

Munir Ahmed Elsangedy

🤔

AlixWang

📖

Sal Olivares

💻🐛

Neale Upstone

💻

Martin Barksten

📖

This project follows theall-contributors specification. Contributions of any kind welcome!

Similar projects

About

🍾 Flexible promise-based React data loader

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp