Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support customizing initialPageParam #141

Closed
adamgoose opened this issue Aug 20, 2024 · 3 comments · Fixed by #143
Closed

Support customizing initialPageParam #141

adamgoose opened this issue Aug 20, 2024 · 3 comments · Fixed by #143

Comments

@adamgoose
Copy link
Contributor

Is your feature request related to a problem? Please describe.
The newly added Infinite Query support generates a hard-coded initialPageParam: 1. This prevents use with cursor-based or zero-indexed pagination APIs.

Describe the solution you'd like
Support customizing the initialPageParam, be it null, string, or number.

Describe alternatives you've considered
I'll have to manually define the infinite query in the meantime, utilizing the generated API client.

@7nohe
Copy link
Owner

7nohe commented Sep 16, 2024

It should have been resolved in v1.6.1.

@ekuzu
Copy link

ekuzu commented Sep 19, 2024

Hi Guys

I uses 1.6.1, if i don't set initialPageParam in cli, It sends query page param as "initialPageParam" rather then default value 1

api/customers?page=initialPageParam&limit=10&search=

If it works like this please update the README

Thanks.

@7nohe
Copy link
Owner

7nohe commented Sep 19, 2024

Hi Guys

I uses 1.6.1, if i don't set initialPageParam in cli, It sends query page param as "initialPageParam" rather then default value 1

api/customers?page=initialPageParam&limit=10&search=

If it works like this please update the README

Thanks.

This issue is expected to be resolved in #149.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants