Skip to content

Commit 3e8f499

Browse files
authored
docs: update rtk-query comparison.md (TanStack#3328)
rtk-query stars counter points to an archived repo. Query now lives in the main repo as a package. I understand that this isn't totally right, but at least it seems reasonable not to count start of an archived repo.
1 parent b44c213 commit 3e8f499

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

docs/src/pages/comparison.md

+9-6
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Feature/Capability Key:
2323
| Query Key Change Detection | Deep Compare (Stable Serialization) | Shallow Compare | Deep Compare (Unstable Serialization) | Referential Equality (===) |
2424
| Query Data Change Detection | Deep Comparison + Structural Sharing | Deep Compare (via `dequal`) | Deep Compare (Unstable Serialization) | Referential Equality (===) |
2525
| Query Data Memoization Level | Query + Structural Sharing | Query | Query + Entity + Structural Sharing | Query |
26-
| Bundle Size | [![][bp-react-query]][bpl-react-query] | [![][bp-swr]][bpl-swr] | [![][bp-apollo]][bpl-apollo] | [![][bp-rtk-query]][bpl-rtk-query] |
26+
| Bundle Size<sup>8</sup> | [![][bp-react-query]][bpl-react-query] | [![][bp-swr]][bpl-swr] | [![][bp-apollo]][bpl-apollo] | [![][bp-rtk-query]][bpl-rtk-query] |
2727
| API Definition | On-Use, Declarative | On-Use | GraphQL Schema | Declarative |
2828
| Queries |||||
2929
| Caching |||||
@@ -74,7 +74,9 @@ Feature/Capability Key:
7474
7575
> **<sup>6</sup> Normalized Caching** - React Query, SWR and RTK-Query do not currently support automatic-normalized caching which describes storing entities in a flat architecture to avoid some high-level data duplication.
7676
77-
> **<sup>6</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
77+
> **<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
78+
79+
> **<sup>8</sup> RTK-Query's bundle size** [can vary][rtk-query-bundle-size] depending on whether you already use redux-toolkit or not
7880
7981
<!-- -->
8082

@@ -103,9 +105,10 @@ Feature/Capability Key:
103105

104106
[rtk-query]: https://redux-toolkit.js.org/rtk-query/overview
105107
[rtk-query-comparison]: https://redux-toolkit.js.org/rtk-query/comparison
108+
[rtk-query-bundle-size]: https://redux-toolkit.js.org/rtk-query/comparison#bundle-size
106109
[bp-rtk]: https://badgen.net/bundlephobia/minzip/@reduxjs/toolkit?label=💾
107-
[bp-rtk-query]: https://badgen.net/bundlephobia/minzip/@rtk-incubator/rtk-query?label=💾
108-
[gh-rtk-query]: https://github.com/rtk-incubator/rtk-query
109-
[stars-rtk-query]: https://img.shields.io/github/stars/rtk-incubator/rtk-query?label=%F0%9F%8C%9F
110+
[bp-rtk-query]: https://badgen.net/bundlephobia/minzip/@reduxjs/toolkit?label=💾
111+
[gh-rtk-query]: https://github.com/reduxjs/redux-toolkit
112+
[stars-rtk-query]: https://img.shields.io/github/stars/reduxjs/redux-toolkit?label=🌟
110113
[bpl-rtk]: https://bundlephobia.com/result?p=@reduxjs/toolkit
111-
[bpl-rtk-query]: https://bundlephobia.com/result?p=@rtk-incubator/rtk-query
114+
[bpl-rtk-query]: https://bundlephobia.com/package/@reduxjs/toolkit

0 commit comments

Comments
 (0)