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

Add support to nested useInfiniteQueryParam #1377

Open
ruiaraujo012 opened this issue May 15, 2024 · 0 comments
Open

Add support to nested useInfiniteQueryParam #1377

ruiaraujo012 opened this issue May 15, 2024 · 0 comments
Labels
tanstack-query TanStack Query related issue

Comments

@ruiaraujo012
Copy link

I don't know if it is possible, but the api I'm using has an object as params:

{
  criteria: {
    page: 0,
    size: 10,
   ...
  }
}

My orval config should be:

query: {
              useInfinite: true,
              useInfiniteQueryParam: 'criteria.page',
              useQuery: true,
},

But it doesn't work, the generated code has errors
image

@melloware melloware added the tanstack-query TanStack Query related issue label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tanstack-query TanStack Query related issue
Projects
None yet
Development

No branches or pull requests

2 participants