Skip to content

Commit 3c647e9

Browse files
committed
fix: remove useEffect comparison column
1 parent 6b58a89 commit 3c647e9

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

β€Žplugins/backstage-plugin-coder/docs/guides/coder-api.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,17 @@ We highly recommend **not** fetching with `useState` + `useEffect`, or with `use
4646

4747
### Comparing query caching strategies
4848

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 | 🚫 | 🚫 | βœ… |
6060

6161
## Authentication
6262

0 commit comments

Comments
Β (0)