Skip to content

Commit d8fce1e

Browse files
committed
docs(vue-query/reference): hide React-only 'React.use()' mention from useInfiniteQuery
1 parent 0785da5 commit d8fce1e

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

docs/framework/react/reference/useInfiniteQuery.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ The returned properties for `useInfiniteQuery` are identical to the [`useQuery`
8888
- Will be `true` if the query failed while refetching a page.
8989
- `promise: Promise<TData>`
9090
- A stable promise that resolves to the query result.
91+
[//]: # 'ReactUse'
9192
- This can be used with `React.use()` to fetch data
93+
[//]: # 'ReactUse'
9294
- Requires the `experimental_prefetchInRender` feature flag to be enabled on the `QueryClient`.
9395

9496
Keep in mind that imperative fetch calls, such as `fetchNextPage`, may interfere with the default refetch behaviour, resulting in outdated data. Make sure to call these functions only in response to user actions, or add conditions like `hasNextPage && !isFetching`.

docs/framework/vue/reference/useInfiniteQuery.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ title: useInfiniteQuery
44
ref: docs/framework/react/reference/useInfiniteQuery.md
55
replace: { '@tanstack/react-query': '@tanstack/vue-query' }
66
---
7+
8+
[//]: # 'ReactUse'
9+
[//]: # 'ReactUse'

0 commit comments

Comments
 (0)