Skip to content

Commit 80d648e

Browse files
author
Yannis Kommana
committed
chore(docs): Add pageParamName to docs
1 parent d87b728 commit 80d648e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/openapi-react-query/use-infinite-query.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ const query = $api.useInfiniteQuery(
105105
- Only required if the OpenApi schema requires parameters.
106106
- The options `params` are used as key. See [Query Keys](https://tanstack.com/query/latest/docs/framework/react/guides/query-keys) for more information.
107107
- `infiniteQueryOptions`
108+
- `pageParamName`
109+
- The name of the page parameter to use in the query. This will override any value provided in `options.query`.
110+
- Default: `"cursor"`.
108111
- The original `useInfiniteQuery` options.
109112
- [See more information](https://tanstack.com/query/latest/docs/framework/react/reference/useInfiniteQuery)
110113
- `queryClient`

0 commit comments

Comments
 (0)