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

Generates incorrect queryKeys for Infinite queries #140

Open
AnderssonPeter opened this issue Aug 19, 2024 · 1 comment
Open

Generates incorrect queryKeys for Infinite queries #140

AnderssonPeter opened this issue Aug 19, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@AnderssonPeter
Copy link

Describe the bug
Generates incorrect queryKeys for Infinite queries, the page is expected to be sent into the KeyFn.

To Reproduce
Steps to reproduce the behavior:

  • Generate client using openapi-rq --pageParam page --input https://localhost:44353/swagger/v1/swagger.json --output src/openapi/.
  • Compile code 💥

Expected behavior
I think you need 2 sets for KeyFn functions one for Infinite queries and one for the normal request.
Where the Infinite version excludes the page.

Screenshots
image

  • OS: Windows 11
  • Version v1.6.0
@AnderssonPeter AnderssonPeter changed the title generates incorrect queryKeys for Infinite queries Generates incorrect queryKeys for Infinite queries Aug 19, 2024
@hanahem
Copy link

hanahem commented Aug 20, 2024

Oh thanks for raising this one, I think it causes the issue I raised here:
#139

@7nohe 7nohe added the bug Something isn't working label Sep 16, 2024
@7nohe 7nohe self-assigned this Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants