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 nested nextPageParam values #142

Closed
adamgoose opened this issue Aug 20, 2024 · 1 comment · Fixed by #143
Closed

Support nested nextPageParam values #142

adamgoose opened this issue Aug 20, 2024 · 1 comment · Fixed by #143

Comments

@adamgoose
Copy link
Contributor

Is your feature request related to a problem? Please describe.
My API returns the nextPageParam as meta.next. Passing --nextPageParam meta.next results in broken typescript generation as local variables don't support dots.

getNextPageParam: response => (response as { meta.next: number }).meta.next

Describe the solution you'd like
Support dots in the nextPageParam name and traverse the response accordingly.

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.

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