@7nohe/openapi-react-query-codegen
v2.0.0-beta.3
Published
OpenAPI React Query Codegen
Downloads
68,185
Maintainers
Readme
OpenAPI React Query Codegen
Code generator for creating React Query (also known as TanStack Query) hooks based on your OpenAPI schema.
Features
- Generates custom react hooks that use React Query's
useQuery
,useSuspenseQuery
,useMutation
anduseInfiniteQuery
hooks - Generates custom functions that use React Query's
ensureQueryData
andprefetchQuery
functions - Generates query keys and functions for query caching
- Generates pure TypeScript clients generated by @hey-api/openapi-ts