Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 730 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 730 Bytes

OpenAPI React Query Codegen

Code generator for creating React Query (also known as TanStack Query) hooks based on your OpenAPI schema.

npm version

Features

  • Generates custom react hooks that use React Query's useQuery, useSuspenseQuery, useMutation and useInfiniteQuery hooks
  • Generates custom functions that use React Query's ensureQueryData and prefetchQuery functions
  • Generates query keys and functions for query caching
  • Generates pure TypeScript clients generated by @hey-api/openapi-ts