Skip to content

Commit 506e4ca

Browse files
committed
docs: Update Examples
1 parent e8a22e9 commit 506e4ca

File tree

41 files changed

+125
-784
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+125
-784
lines changed

docs/src/pages/guides/ssr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export async function getStaticProps() {
8989

9090
return {
9191
props: {
92-
dehydratedState: dehydrate(cache),
92+
dehydratedState: dehydrate(queryClient),
9393
},
9494
}
9595
}

examples/auto-refetching/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"react": "16.13.0",
1111
"react-dom": "16.13.0",
1212
"react-query": "^2.21.2",
13-
"react-query-devtools": "^2.4.7"
13+
"react-query-devtools": "^3.0.0-beta.1"
1414
},
1515
"scripts": {
1616
"dev": "next",

examples/basic-graphql-request/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function Posts({ setPostId }) {
8181
onClick={() => setPostId(post.id)}
8282
href="#"
8383
style={
84-
// We can use the queryCache here to show bold links for
84+
// We can find the existing query data here to show bold links for
8585
// ones that are cached
8686
queryClient.getQueryData(["post", post.id])
8787
? {

examples/basic/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"react": "^16.8.6",
1212
"react-dom": "^16.8.6",
1313
"react-query": "2.23.1",
14-
"react-query-devtools": "^2.4.7",
14+
"react-query-devtools": "^3.0.0-beta.1",
1515
"react-scripts": "3.0.1",
1616
"stop-runaway-react-effects": "^1.2.0",
1717
"styled-components": "^4.3.2"
@@ -34,4 +34,4 @@
3434
"last 1 safari version"
3535
]
3636
}
37-
}
37+
}

examples/basic/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function Posts({ setPostId }) {
6767
onClick={() => setPostId(post.id)}
6868
href="#"
6969
style={
70-
// We can use the queryCache here to show bold links for
70+
// We can access the query data here to show bold links for
7171
// ones that are cached
7272
queryClient.getQueryData(["post", post.id])
7373
? {

examples/gql-blog/.gitignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

examples/gql-blog/README.md

Lines changed: 0 additions & 68 deletions
This file was deleted.

examples/gql-blog/package.json

Lines changed: 0 additions & 46 deletions
This file was deleted.
-20.8 KB
Binary file not shown.
-65.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)