7nohe / openapi-react-query-codegen

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

Home Page:https://openapi-react-query-codegen.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://openapi-react-query-codegen.vercel.app

License:MIT License


Languages

Language:TypeScript 97.2%Language:JavaScript 2.8%