openapi-react-query-codegen icon indicating copy to clipboard operation
openapi-react-query-codegen copied to clipboard

OpenAPI React Query Codegen is a code generator for creating React Query (also known as TanStack Query) hooks based on your OpenAPI schema.

Results 57 openapi-react-query-codegen issues
Sort by recently updated
recently updated
newest added

**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...

bug

**Describe the bug** The codegen tool works wonder. I've been just having a hard time generating working infinite queries. Am I missing something on how I'm naming my `pageParam` and...

bug

**Describe the bug** During generating a client with ` npx --package @7nohe/openapi-react-query-codegen openapi-rq -i spec.json` a `RangeError: Maximum call stack size exceeded` is thrown. **To Reproduce** Generate RQ client for...

**Describe the bug** When I want to run `yarn codegen` , It throws this error: ``` Error: Method block not found ``` And with version "v2.0.0-beta.1", I get this error:...

I have a mutation which returns a Content-Disposition header with the filename, etc. But my generated mutation returns only a string, any way to get access to the response headers?...

**Is your feature request related to a problem? Please describe.** Many APIs use X-Total-Count as a Header for pagination. Also, other headers might be useful and should be exposed to...

**Describe the bug** Generated type of `useSuspenseQuery`'s data (TData) must not contain `undefined` unlike `useQuery`. This is the point of using `useSuspenseQuery`. [TanStack Query document](https://tanstack.com/query/latest/docs/framework/react/guides/suspense) clearly states that > `const...

**Describe the bug** When generating a (axios) client for an endpoint with a binary response type (i.e content-type=application/octet-stream), the generated response type is Blob: `export type GetSomethingResponse = (Blob |...

I'm running into a problem with `initialPageParam` here. My api expects no or an empty initial page parameter. `initialPageParam=""` generates code that sends `page=0`. I believe the reason is that...

**Is your feature request related to a problem? Please describe.** Current `useInfiniteQuery` is great, however in some cases the response won't conveniently contain a `nextPageParam` parameter. Notable example being Spring...