Skip to content

Commit f231f8c

Browse files
authored
docs: fix comment in comparison doc (#4137)
1 parent ebd6570 commit f231f8c

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

docs/comparison.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Feature/Capability Key:
6565

6666
> **<sup>1</sup> Lagged Query Data** - React Query provides a way to continue to see an existing query's data while the next query loads (similar to the same UX that suspense will soon provide natively). This is extremely important when writing pagination UIs or infinite loading UIs where you do not want to show a hard loading state whenever a new query is requested. Other libraries do not have this capability and render a hard loading state for the new query (unless it has been prefetched), while the new query loads.
6767
68-
> **<sup>2</sup> Render Optimization** - React Query has excellent rendering performance. By default, it will automatically track which fields are accessed and only re-render if one of them changes. If you would like to opt-out of this optimization, setting `notifyOnChangeProps` to `'all'` will re-render your components whenever the query is updated. For example because it has new data, or to indicate it is fetching. React Query also batches updates together to make sure your application only re-renders once when multiple components are using the same query. If you are only interested in the `data` or `error` properties, you can reduce the number of renders even more by setting `notifyOnChangeProps` to `['data', 'error']`.
68+
> **<sup>2</sup> Render Optimization** - React Query has excellent rendering performance. By default, it will automatically track which fields are accessed and only re-render if one of them changes. If you would like to opt-out of this optimization, setting `notifyOnChangeProps` to `'all'` will re-render your components whenever the query is updated. For example because it has new data, or to indicate it is fetching. React Query also batches updates together to make sure your application only re-renders once when multiple components are using the same query. If you are only interested in the `data` or `error` properties, you can reduce the number of renders even more by setting `notifyOnChangeProps` to `['data', 'error']`.
6969
7070
> **<sup>3</sup> Partial query matching** - Because React Query uses deterministic query key serialization, this allows you to manipulate variable groups of queries without having to know each individual query-key that you want to match, eg. you can refetch every query that starts with `todos` in its key, regardless of variables, or you can target specific queries with (or without) variables or nested properties, and even use a filter function to only match queries that pass your specific conditions.
7171
@@ -79,31 +79,23 @@ Feature/Capability Key:
7979
8080
> **<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.
8181
82-
<!-- -->
83-
8482
[bpl-react-query]: https://bundlephobia.com/result?p=react-query
8583
[bp-react-query]: https://badgen.net/bundlephobia/minzip/react-query?label=💾
8684
[gh-react-query]: https://github.com/tannerlinsley/react-query
8785
[stars-react-query]: https://img.shields.io/github/stars/tannerlinsley/react-query?label=%F0%9F%8C%9F
8886

89-
<!-- -->
90-
9187
[swr]: https://github.com/vercel/swr
9288
[bp-swr]: https://badgen.net/bundlephobia/minzip/swr?label=💾
9389
[gh-swr]: https://github.com/vercel/swr
9490
[stars-swr]: https://img.shields.io/github/stars/vercel/swr?label=%F0%9F%8C%9F
9591
[bpl-swr]: https://bundlephobia.com/result?p=swr
9692

97-
<!-- -->
98-
9993
[apollo]: https://github.com/apollographql/apollo-client
10094
[bp-apollo]: https://badgen.net/bundlephobia/minzip/@apollo/client?label=💾
10195
[gh-apollo]: https://github.com/apollographql/apollo-client
10296
[stars-apollo]: https://img.shields.io/github/stars/apollographql/apollo-client?label=%F0%9F%8C%9F
10397
[bpl-apollo]: https://bundlephobia.com/result?p=@apollo/client
10498

105-
<!-- -->
106-
10799
[rtk-query]: https://redux-toolkit.js.org/rtk-query/overview
108100
[rtk-query-comparison]: https://redux-toolkit.js.org/rtk-query/comparison
109101
[rtk-query-bundle-size]: https://redux-toolkit.js.org/rtk-query/comparison#bundle-size
@@ -114,8 +106,6 @@ Feature/Capability Key:
114106
[bpl-rtk]: https://bundlephobia.com/result?p=@reduxjs/toolkit
115107
[bpl-rtk-query]: https://bundlephobia.com/package/@reduxjs/toolkit
116108

117-
<!-- -->
118-
119109
[react-router]: https://github.com/remix-run/react-router
120110
[bp-react-router]: https://badgen.net/bundlephobia/minzip/react-router-dom?label=💾
121111
[gh-react-router]: https://github.com/remix-run/react-router

0 commit comments

Comments
 (0)