Skip to content

Commit fc4671f

Browse files
committed
docs: comparison
1 parent e41f5c6 commit fc4671f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docs/src/pages/comparison.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: comparison
3-
title: Comparison | React Query vs SWR vs Apollo vs RTK Query
3+
title: Comparison | React Query vs SWR vs Apollo vs RTK Query vs React Router
44
---
55

66
> This comparison table strives to be as accurate and as unbiased as possible. If you use any of these libraries and feel the information could be improved, feel free to suggest changes (with notes or evidence of claims) using the "Edit this page on Github" link at the bottom of this page.
@@ -27,7 +27,7 @@ Feature/Capability Key:
2727
| Bundle Size | [![][bp-react-query]][bpl-react-query] | [![][bp-swr]][bpl-swr] | [![][bp-apollo]][bpl-apollo] | [![][bp-rtk-query]][bpl-rtk-query] | [![][bp-react-router]][bpl-react-router] + [![][bp-history]][bpl-history] |
2828
| API Definition Location | Component, External Config | Component | GraphQL Schema | External Config | Route Tree Configuration |
2929
| Queries ||||||
30-
| Cache Persistence ||||| 🛑 Active Routes Only <sup>7</sup> |
30+
| Cache Persistence ||||| 🛑 Active Routes Only <sup>8</sup> |
3131
| Devtools || 🟡 ||| 🛑 |
3232
| Polling/Intervals ||||| 🛑 |
3333
| Parallel Queries ||||||
@@ -50,7 +50,7 @@ Feature/Capability Key:
5050
| Query Cancellation || 🛑 | 🛑 | 🛑 ||
5151
| Partial Query Matching<sup>3</sup> || 🛑 | 🛑 || N/A |
5252
| Stale While Revalidate ||||| 🛑 |
53-
| Stale Time Configuration || 🛑 | 🛑 || 🛑 |
53+
| Stale Time Configuration || 🛑<sup>7</sup> | 🛑 || 🛑 |
5454
| Pre-usage Query/Mutation Configuration<sup>4</sup> || 🛑 | 🛑 |||
5555
| Window Focus Refetching ||| 🛑 | 🔶 | 🛑 |
5656
| Network Status Refetching |||| 🔶 | 🛑 |
@@ -77,9 +77,7 @@ Feature/Capability Key:
7777
7878
> **<sup>7</sup> SWR's Immutable Mode** - SWR ships with an "immutable" mode that does allow you to only fetch a query once for the life of the cache, but it still does not have the concept of stale-time or conditional auto-revalidation
7979
80-
> **<sup>8</sup> RTK-Query's bundle size** [can vary][rtk-query-bundle-size] depending on whether you already use redux-toolkit or not
81-
82-
> **<sup>7</sup> React Router cache persistence** - React Router does not cache data beyond the currently matched routes. If a route is left, its data is lost.
80+
> **<sup>8</sup> React Router cache persistence** - React Router does not cache data beyond the currently matched routes. If a route is left, its data is lost.
8381
8482
<!-- -->
8583

0 commit comments

Comments
 (0)