Skip to content

Commit 3b06641

Browse files
committed
docs: update supporters and comparison
1 parent 89d1694 commit 3b06641

File tree

2 files changed

+27
-17
lines changed

2 files changed

+27
-17
lines changed

docs/src/pages/docs/comparison.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Feature/Capability Key:
2828
| Dependent Queries ||||
2929
| Paginated Queries ||||
3030
| Infinite Queries ||||
31-
| Lagged Queries<sup>1</sup> || 🛑 | 🛑 |
31+
| Lagged / "Lazy" Queries<sup>1</sup> || 🛑 | 🛑 |
3232
| Initial Data ||||
3333
| Scroll Recovery ||||
3434
| Cache Manipulation ||||
@@ -48,7 +48,7 @@ Feature/Capability Key:
4848

4949
### Notes
5050

51-
> **<sup>1</sup> "Lagged" Queries** - 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.
51+
> **<sup>1</sup> Lagged / "Lazy" Queries** - 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.
5252
5353
> **<sup>2</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.
5454

docs/src/pages/index.js

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,23 @@ import { ClientsMarquee } from 'components/clients/ClientsMarquee'
99
import { Seo } from 'components/Seo'
1010
import Head from 'next/head'
1111

12-
const Home = props => {
12+
const supporters = [
13+
['Kent C. Dodds (kentcdodds.com)', 'https://kentcdodds.com/'],
14+
['@bgazzera', 'https://github.com/bgazzera"'],
15+
['Gabe Ragland', 'https://github.com/gragland"'],
16+
]
17+
18+
const fans = [
19+
`Steven Miyakawa (@SamSamskies)`,
20+
`Alex Trost (@a-trost)`,
21+
`Andrey (@andreyvital)`,
22+
'Anoop (@Anoupz)',
23+
'Daniel Almaguer (@deini)',
24+
'Chris Vaszauskas (@chrisvasz)',
25+
'Christian Rudh (@crudh)',
26+
]
27+
28+
const Home = () => {
1329
return (
1430
<>
1531
<Seo
@@ -254,17 +270,11 @@ const Home = props => {
254270
Supporters
255271
</div>
256272
<ul className="list-none text-center">
257-
<li className="font-bold text-blue-800">
258-
<a href="https://kentcdodds.com/">
259-
Kent C. Dodds (kentcdodds.com)
260-
</a>
261-
</li>
262-
<li className="font-bold text-blue-800">
263-
<a href="https://github.com/bgazzera">@bgazzera</a>
264-
</li>
265-
<li className="font-bold text-blue-800">
266-
<a href="https://github.com/gragland">Gabe Ragland</a>
267-
</li>
273+
{supporters.forEach((supporter, i) => (
274+
<li className="font-bold text-blue-800" key={i}>
275+
<a href={supporter[1]}>{supporter[0]}</a>
276+
</li>
277+
))}
268278
</ul>
269279
</div>
270280

@@ -273,9 +283,9 @@ const Home = props => {
273283
Fans
274284
</div>
275285
<ul className="list-none text-center">
276-
<li>Steven Miyakawa (@SamSamskies)</li>
277-
<li>Alex Trost (@a-trost)</li>
278-
<li>Andrey (@andreyvital)</li>
286+
{fans.forEach(fan => (
287+
<li key={fan}>{fan}</li>
288+
))}
279289
</ul>
280290
</div>
281291
</div>

0 commit comments

Comments
 (0)