@@ -12,7 +12,7 @@ Don't expect it to grow in size, because it is **feature complete**:
12
12
- Handle cancellation (` useAsyncAbortable ` + ` AbortController ` )
13
13
- Handle race conditions
14
14
- Platform agnostic
15
- - Works with any async function, not just backend API calls
15
+ - Works with any async function, not just backend API calls, not just fetch/axios...
16
16
- Very good, native, Typescript support
17
17
- Small, no dependency
18
18
- Rules of hooks: ESLint find missing dependencies
@@ -21,8 +21,27 @@ Don't expect it to grow in size, because it is **feature complete**:
21
21
- Options to customize state updates
22
22
- Can mutate state after fetch
23
23
24
+ ## Small size
25
+
26
+ - Tiny (1.5k minified gzipped)
27
+ - At least 3 times smaller than popular alternatives.
28
+ - CommonJS + ESM bundles, tree-shakable
29
+ - Design using composition, good tree-shakeability
30
+
31
+ ### react-async-hook
32
+
33
+ ![ ] ( https://img.shields.io/bundlephobia/min/react-async-hook.svg ) ![ ] ( https://img.shields.io/bundlephobia/minzip/react-async-hook.svg )
34
+
35
+ ### React-Query
36
+
37
+ ![ ] ( https://img.shields.io/bundlephobia/min/react-query.svg ) ![ ] ( https://img.shields.io/bundlephobia/minzip/react-query.svg )
38
+
39
+ ### SWR
40
+
41
+ ![ ] ( https://img.shields.io/bundlephobia/min/swr.svg ) ![ ] ( https://img.shields.io/bundlephobia/minzip/swr.svg )
42
+
43
+ ## Things we don't support (by design):
24
44
25
- ** Things we don't support, by design** :
26
45
- stale-while-revalidate
27
46
- refetch on focus / resume
28
47
- caching
0 commit comments