Skip to content

Commit 04983d5

Browse files
authored
Update README.md
1 parent f2cf465 commit 04983d5

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

README.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Don't expect it to grow in size, because it is **feature complete**:
1212
- Handle cancellation (`useAsyncAbortable` + `AbortController`)
1313
- Handle race conditions
1414
- 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...
1616
- Very good, native, Typescript support
1717
- Small, no dependency
1818
- Rules of hooks: ESLint find missing dependencies
@@ -21,8 +21,27 @@ Don't expect it to grow in size, because it is **feature complete**:
2121
- Options to customize state updates
2222
- Can mutate state after fetch
2323

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):
2444

25-
**Things we don't support, by design**:
2645
- stale-while-revalidate
2746
- refetch on focus / resume
2847
- caching

0 commit comments

Comments
 (0)