File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 3
3
[ ![ NPM] ( https://img.shields.io/npm/dm/react-async-hook.svg )] ( https://www.npmjs.com/package/react-async-hook )
4
4
[ ![ Build Status] ( https://travis-ci.com/slorber/react-async-hook.svg?branch=master )] ( https://travis-ci.com/slorber/react-async-hook )
5
5
6
- - Simplest way to get async result in your React component
7
- - Very good, native, Typescript support
6
+ - Simplest way to get async result / feedback in your React component
7
+ - Works with any React platform (ReactNative, Expo...)
8
8
- Refetch on params change
9
+ - Handle async callbacks (mutations)
9
10
- Handle concurrency issues if params change too fast
10
11
- Flexible, works with any async function, not just api calls
11
12
- Support for cancellation (AbortController)
12
13
- Possibility to trigger manual refetches / updates
13
14
- Options to customize state updates
14
- - Handle async callbacks (mutations)
15
+ - Very good, native, Typescript support
16
+ - Small and no dependency
15
17
16
18
## Usecase: loading async data into a component
17
19
You can’t perform that action at this time.
0 commit comments