Skip to content

Commit 4e99590

Browse files
committed
docs: update data fetching docs
1 parent 4237273 commit 4e99590

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/src/content/docs/guides/data-fetching.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ Below is the complete code for the use-posts.ts file:
6262

6363
<CodeBlock file="src/api/posts/use-posts.ts" />
6464

65-
the `createQuery` function accept an object with the following: `queryKey`, `queryFn` and `options`. Read more about (createQuery)[https://github.com/liaoliao666/react-query-kit#createQuery]
65+
the `createQuery` function accept an object with the following: `queryKey`, `fetcher` and `options`. Since we migrated to the latest version of `react-query-kit`, the `queryFn` property is replaced with `fetcher` and the `queryKey` structure is simplified. Read more about (createQuery)[https://github.com/liaoliao666/react-query-kit#createQuery]
6666

6767
:::tip
6868
Use `useq` snippet to generate a query in no time using VSCode
69-
![use-query](https://github.com/obytes/react-native-template-obytes/assets/11137944/9acc189b-2425-491a-a644-02c51c6d405f)
69+
![use-query](https://github.com/obytes/react-native-template-obytes/assets/114411010/c052a0ee-8fba-436a-950f-a0c7e44cf3ae)
7070

7171
:::
7272

@@ -132,9 +132,9 @@ Maybe you mentioned that creating a new query or mutation hook looks the same ev
132132

133133
- `useq` : Create a new query hook
134134

135-
![use-query](https://github.com/obytes/react-native-template-obytes/assets/11137944/9acc189b-2425-491a-a644-02c51c6d405f)
135+
![use-query](https://github.com/obytes/react-native-template-obytes/assets/114411010/c052a0ee-8fba-436a-950f-a0c7e44cf3ae)
136136

137-
- `useqp` : Create a new query hook with params
137+
- `useqv` : Create a new query hook with variables
138138

139139
- `useiq` : Create a new infinite query hook
140140
- `usem` : Create a new mutation hook

0 commit comments

Comments
 (0)