Skip to content

Commit

Permalink
chore: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stbui committed Sep 18, 2020
1 parent d559f41 commit 9ded8b6
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docs/comparison.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
| | | React Query | SWR (Website) | Apollo Client (Website) |
| :------------------------------- | :-- | :---------------------------------- | :------------------------- | :------------------------------------ |
| Supported Query Syntax | | Promise, REST, GraphQL | Promise, REST, GraphQL | GraphQL |
| Supported Query Keys | | JSON | JSON | GraphQL Query |
| Query Key Change Detection | | Deep Compare (Stable Serialization) | Referential Equality (===) | Deep Compare (Unstable Serialization) |
| Query Data Memoization Level | | Query + Structural Sharing | Query | Query + Entity + Structural Sharing |
| Bundle Size | | 6.8kb | 4.7kb | 32.9kb |
| Queries | ||||
| Caching | ||||
| Devtools | || 🟡 ||
| Polling/Intervals | ||||
| Parallel Queries | ||||
| Dependent Queries | ||||
| Paginated Queries | ||||
| Infinite Queries | ||||
| Lagged / "Lazy" Queries | || 🛑 | 🛑 |
| Initial Data | ||||
| Scroll Recovery | ||||
| Cache Manipulation | ||||
| Outdated Query Dismissal | ||||
| Render Optimization | || 🛑 | 🛑 |
| Auto Garbage Collection | || 🛑 | 🛑 |
| Mutation Hooks | || 🟡 ||
| Prefetching APIs | || 🔶 ||
| Query Cancellation | || 🛑 | 🛑 |
| Partial Query Matching | || 🛑 | 🛑 |
| Stale While Revalidate | ||| 🛑 |
| Stale Time Configuration | || 🛑 | 🛑 |
| Window Focus Refetching | ||| 🛑 |
| Network Status Refetching | ||||
| Automatic Refetch after Mutation | | 🔶 | 🔶 ||
| Cache Dehydration/Rehydration | || 🛑 ||
| React Suspense (Experimental) | ||| 🛑 |

0 comments on commit 9ded8b6

Please sign in to comment.