@@ -46,17 +46,17 @@ We highly recommend **not** fetching with `useState` + `useEffect`, or with `use
46
46
47
47
### Comparing query caching strategies
48
48
49
- | | ` useState ` + ` useEffect ` | ` useAsync ` | ` useQuery ` | ` useCoderQuery ` |
50
- | ------------------------------------------------------------------ | ------------------------ | ---------- | ---------- | --------------- |
51
- | Automatically handles race conditions | π« | β
| β
| β
|
52
- | Can retain state after component unmounts | π« | π« | β
| β
|
53
- | Easy, on-command query invalidation | π« | π« | β
| β
|
54
- | Automatic retry logic when a query fails | π« | π« | β
| β
|
55
- | Less need to fight dependency arrays | π« | π« | β
| β
|
56
- | Easy to share state for sibling components | π« | π« | β
| β
|
57
- | Pre-wired to Coder auth logic | π« | π« | π« | β
|
58
- | Can consume Coder API directly from query function | π« | π« | π« | β
|
59
- | Automatically groups Coder-related queries by prefixing query keys | π« | π« | π« | β
|
49
+ | | ` useAsync ` | ` useQuery ` | ` useCoderQuery ` |
50
+ | ------------------------------------------------------------------ | ---------- | ---------- | --------------- |
51
+ | Automatically handles race conditions | β
| β
| β
|
52
+ | Can retain state after component unmounts | π« | β
| β
|
53
+ | Easy, on-command query invalidation | π« | β
| β
|
54
+ | Automatic retry logic when a query fails | π« | β
| β
|
55
+ | Less need to fight dependency arrays | π« | β
| β
|
56
+ | Easy to share state for sibling components | π« | β
| β
|
57
+ | Pre-wired to Coder auth logic | π« | π« | β
|
58
+ | Can consume Coder API directly from query function | π« | π« | β
|
59
+ | Automatically groups Coder-related queries by prefixing query keys | π« | π« | β
|
60
60
61
61
## Authentication
62
62
0 commit comments