Skip to content

Commit 71c17de

Browse files
committed
docs(react-query): new docs for usePrefetchQuery
1 parent cc234f4 commit 71c17de

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/framework/react/reference/usePrefetchInfiniteQuery.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ usePrefetchInfiniteQuery(options)
99

1010
**Options**
1111

12-
You can pass everything to `usePrefetchInfiniteQuery` that you can pass to [`queryClient.prefetchInfiniteQuery`](../../../reference/QueryClient.md#queryclientprefetchinfinitequery). Remember that some of them are required as below:
12+
You can pass everything to `usePrefetchInfiniteQuery` that you can pass to [`queryClient.infiniteQuery`](../../../reference/QueryClient.md#queryclientinfinitequery). Remember that some of them are required as below:
1313

1414
- `queryKey: QueryKey`
1515
- **Required**

docs/framework/react/reference/usePrefetchQuery.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ usePrefetchQuery(options)
99

1010
**Options**
1111

12-
You can pass everything to `usePrefetchQuery` that you can pass to [`queryClient.prefetchQuery`](../../../reference/QueryClient.md#queryclientprefetchquery). Remember that some of them are required as below:
12+
You can pass everything to `usePrefetchQuery` that you can pass to [`queryClient.query`](../../../reference/QueryClient.md#queryclientquery). Remember that some of them are required as below:
1313

1414
- `queryKey: QueryKey`
1515
- **Required**
1616
- The query key to prefetch during render
1717

18-
- `queryFn: (context: QueryFunctionContext) => Promise<TData>`
18+
- `queryFn: (context: QueryFunctionContext<TQueryKey>) => TQueryFnData | Promise<TQueryFnData>`
1919
- **Required, but only if no default query function has been defined** See [Default Query Function](../guides/default-query-function.md) for more information.
2020

2121
**Returns**

0 commit comments

Comments
 (0)