Skip to content

Commit 532b90a

Browse files
authored
docs: update tkdodos blog (#4820)
1 parent 86161ca commit 532b90a

File tree

4 files changed

+40
-4
lines changed

4 files changed

+40
-4
lines changed

docs/react/community/tkdodos-blog.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ id: tkdodos-blog
33
title: TkDodo's Blog
44
---
55

6-
React Query maintainer [TkDodo](https://twitter.com/tkdodo) has a series of blog posts about using and working with the library. Some articles show general best practices, but most have an _opinionated_ point of view.
7-
6+
TanStack Query maintainer [TkDodo](https://twitter.com/tkdodo) has a series of blog posts about using and working with the library. Some articles show general best practices, but most have an _opinionated_ point of view.
87

98
## [#1: Practical React Query](https://tkdodo.eu/blog/practical-react-query)
109

@@ -38,6 +37,10 @@ React Query maintainer [TkDodo](https://twitter.com/tkdodo) has a series of blog
3837

3938
> Most examples just use a simple String or Array Query Key, but how do you organize your keys effectively once your app grows past a todo list? This article shows how co-location and Query Key Factories can make life easier. [Read more...](https://tkdodo.eu/blog/effective-react-query-keys)
4039
40+
## [#8a: Leveraging the Query Function Context](https://tkdodo.eu/blog/leveraging-the-query-function-context)
41+
42+
> In this amendment to the previous blog post, we look at how we can leverage the Query Function Context and Object Query Keys for maximum safety as our app grows. [Read more...](https://tkdodo.eu/blog/leveraging-the-query-function-context)
43+
4144
## [#9: Placeholder and Initial Data in React Query](https://tkdodo.eu/blog/placeholder-and-initial-data-in-react-query)
4245

4346
> Placeholder and Initial Data are two similar yet different concepts for synchronously showing data instead of a loading spinner to improve an application's UX. This blog post compares the two and outlines the scenarios where each one shines. [Read more...](https://tkdodo.eu/blog/placeholder-and-initial-data-in-react-query)
@@ -54,7 +57,6 @@ React Query maintainer [TkDodo](https://twitter.com/tkdodo) has a series of blog
5457

5558
> Mutations are the important, second part necessary to work with server data - for situations where you need to update it. This blog post covers what mutations are and how they are different from queries. You'll learn the difference between `mutate` and `mutateAsync` as well as how you can tie queries and mutations together. [Read more...](https://tkdodo.eu/blog/mastering-mutations-in-react-query)
5659
57-
5860
## [#13: Offline React Query](https://tkdodo.eu/blog/offline-react-query)
5961

6062
> There are many ways to produce promises - which is everything React Query needs - but by far the biggest use-case is data fetching. Very often, that requires an active network connection. But sometimes, especially on mobile devices where, the network connection can be unreliable, you need your app to also work without it. In this article, you'll learn about the different offline strategies React Query offers. [Read more...](https://tkdodo.eu/blog/offline-react-query)
@@ -66,3 +68,19 @@ React Query maintainer [TkDodo](https://twitter.com/tkdodo) has a series of blog
6668
## [#15: React Query FAQs](https://tkdodo.eu/blog/react-query-fa-qs)
6769

6870
> This article tries to answer the most frequently asked questions about React Query. [Read more...](https://tkdodo.eu/blog/react-query-fa-qs)
71+
72+
## [#16: React Query meets React Router](https://tkdodo.eu/blog/react-query-meets-react-router)
73+
74+
> Remix and React Router are changing the game when thinking about _when_ to fetch data. This article goes into why React Query and Routers that support data loading are a match made in heaven. [Read more...](https://tkdodo.eu/blog/react-query-meets-react-router)
75+
76+
## [#17: Seeding the Query Cache](https://tkdodo.eu/blog/seeding-the-query-cache)
77+
78+
> This blog post shows multiple ways how to get data into your Query Cache _before_ you start rendering to minimize the amount of loading spinners displayed in your app. The options range from prefetching on the server or in your router to seeding cache entries via `setQueryData`. [Read more...](https://tkdodo.eu/blog/seeding-the-query-cache)
79+
80+
## [#18: Inside React Query](https://tkdodo.eu/blog/inside-react-query)
81+
82+
> If you've ever wondered how React Query works under the hood - this post is for you. It explains the architecture (including visuals), starting with the agnostic Query Core and how it communicates with the framework specific adapters. [Read more...](https://tkdodo.eu/blog/inside-react-query)
83+
84+
## [#19: Type-safe React Query](https://tkdodo.eu/blog/type-safe-react-query)
85+
86+
> There's a big difference between "having types" and "being type-safe". This article tries to outline those differences and shows how you can get the best possible type-safety when using React Query together with TypeScript [Read more...](https://tkdodo.eu/blog/inside-react-query)

docs/react/guides/prefetching.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,11 @@ queryClient.setQueryData(['todos'], todos)
3434
```
3535

3636
[//]: # 'Example2'
37+
38+
[//]: # 'Materials'
39+
40+
## Further reading
41+
42+
For a deep-dive on how to get data into your Query Cache before you fetch, have a look at [#17: Seeding the Query Cache](../community/tkdodos-blog#17-seeding-the-query-cache) from the Community Resources.
43+
44+
[//]: # 'Materials'

docs/react/reference/QueryCache.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,11 @@ The `clear` method can be used to clear the cache entirely and start fresh.
111111
```tsx
112112
queryCache.clear()
113113
```
114+
[//]: # 'Materials'
115+
116+
## Further reading
117+
118+
To get a better understanding how the QueryCache works internally, have a look at [#18: Inside React Query
119+
](../community/tkdodos-blog#18-inside-react-query) from the Community Resources.
120+
121+
[//]: # 'Materials'

docs/react/typescript.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ const { error } = useQuery<Group[], Error>(['groups'], fetchGroups)
118118
## Further Reading
119119

120120
For tips and tricks around type inference, have a look at [React Query and TypeScript](../community/tkdodos-blog#6-react-query-and-typescript) from
121-
the Community Resources.
121+
the Community Resources. To find out how to get the best possible type-safety, you can read [Type-safe React Query](../community/tkdodos-blog#19-type-safe-react-query).
122+
123+
[//]: # 'Materials'
122124

123125
[//]: # 'Materials'

0 commit comments

Comments
 (0)