Giter Site home page Giter Site logo

p-netm / react-async Goto Github PK

View Code? Open in Web Editor NEW

This project forked from async-library/react-async

0.0 1.0 0.0 4.45 MB

๐Ÿพ Flexible promise-based React data loader

Home Page: https://docs.react-async.com/

License: ISC License

JavaScript 99.31% CSS 0.69%

react-async's Introduction

React Async
Handle promises with ease.


latest version montly downloads minzipped size license
circleci status travis status code coverage code quality DeepScan grade
live examples Chromatic All Contributors

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 useAsync and useFetch hooks
  • Debug and develop every part of the loading sequence with the React Async DevTools
  • Provides convenient isPending, startedAt, finishedAt, et al metadata
  • Provides cancel and reload actions
  • Automatic re-run using watch or watchFn prop
  • Accepts onResolve, onReject and onCancel callbacks
  • Supports abortable fetch by providing an AbortController
  • Supports optimistic updates using setData
  • Supports server-side rendering through initialValue
  • Comes with type definitions for TypeScript
  • 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):

Gert Hengeveld
Gert Hengeveld

๐Ÿ’ป ๐Ÿ‘€ ๐Ÿ’ฌ
Khartir
Khartir

๐Ÿ’ป ๐Ÿ“ฆ
Lenz Weber
Lenz Weber

๐Ÿ’ป ๐Ÿ“ฆ ๐Ÿค”
Avinash
Avinash

๐Ÿ‘€ ๐Ÿ“–
Fred K. Schott
Fred K. Schott

๐Ÿ”ง
Cedric van Putten
Cedric van Putten

๐Ÿ’ป
Tom Shane
Tom Shane

๐Ÿ‘€
Philip Peterson
Philip Peterson

๐Ÿ’ป
Sibelius Seraphini
Sibelius Seraphini

๐Ÿ‘€
Jim Cummins
Jim Cummins

๐Ÿ‘€
Mihkel Sokk
Mihkel Sokk

๐Ÿ‘€
Jiล™รญ Brabec
Jiล™รญ Brabec

๐Ÿ’ป
Andrii U
Andrii U

๐Ÿ’ก
Matthisk Heimensen
Matthisk Heimensen

๐Ÿ’ป
Danny Hurlburt
Danny Hurlburt

๐Ÿค” ๐Ÿ“–
Noel Yoo
Noel Yoo

โš ๏ธ ๐Ÿ’ป ๐Ÿค”
Adam Ratcliffe
Adam Ratcliffe

๐Ÿ’ป
Kent C. Dodds
Kent C. Dodds

๐Ÿ’ป
walter-ind
walter-ind

๐Ÿ“–
Jacob Lee
Jacob Lee

๐Ÿ’ป
Youngrok Kim
Youngrok Kim

๐Ÿ’ป
Munir Ahmed Elsangedy
Munir Ahmed Elsangedy

๐Ÿค”
AlixWang
AlixWang

๐Ÿ“–

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

Similar projects

react-async's People

Contributors

ghengeveld avatar allcontributors[bot] avatar renovate[bot] avatar artdent avatar bycedric avatar renovate-bot avatar aratcliffe avatar alixwang avatar avi98 avatar dhurlburtusa avatar brabeji avatar khartir avatar phryneas avatar matthisk avatar philip-peterson avatar rokoroku avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.