openapi-react-query-codegen
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.
Closes: #113
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...
**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...
"error TS6133: 'queryKey' is declared but its value is never read" from queries.ts and suspense.ts
**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....
**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...
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...
**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...
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...