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

Node.js library that generates React Query (also called TanStack Query) hooks based on an OpenAPI specification file.

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

The query key functions for queries that don't take in additional request parameters don't allow for using additional query key input, but query hooks always take in a query key...

**Describe the bug** I tried to generate the client with Camunda 7 openapi.yaml but it's failed via creating the queries. **To Reproduce** Run the following command with the provided openapi.yaml...

bug

**Describe the bug** Generated files under "requests" have tabs instead of spaces although `prettier` is configured otherwise. **To Reproduce** I have a `.prettierrc` with ```json { "useTabs": false } ```...

**Describe the bug** With `--format prettier`, no formatting seems to happen for files generated in `api/queries`. **To Reproduce** Create a `.prettierrc` with some non-default formatting setting and run with `--format...

help wanted
question

**Describe the bug** Files `queries/queries.ts` and `queries/suspense.ts` generate TS errors from `queryKey` being declared but its value never read, resulting in error TS6133 when building a project with the API....

bug
help wanted

**Is your feature request related to a problem? Please describe.** There are consumers of this library that use enums, we have no tests or examples showing their generation/usage. **Describe the...

documentation
enhancement
help wanted

Attempting to fix https://github.com/7nohe/openapi-react-query-codegen/issues/102. I'll revisit it tomorrow since I'm still getting familiar with the code. The ultimate goal here is to allow prefetch hooks to be as flexible as...

bug

**Describe the bug** I started using the prefetch hooks introduced a few days ago, but the dynamic key is hardcoded, making it challenging to use the prefetched data because the...

bug

I really like codegens, which make the life of developers easy. How ever with this codegen, I was unable to find a way to set cookie/header per query/mutation level. I...

documentation
enhancement
help wanted
question