@kubb/plugin-react-query generates TanStack Query hooks from your OpenAPI specification. Each operation becomes a typed useQuery, useMutation, or useInfiniteQuery hook.
- Generates
useQuery,useMutation,useInfiniteQuery, andqueryOptionshooks - Infers request, response, and error types from the spec
- Groups output files by tag, operation, or a custom strategy
- Works with
@kubb/plugin-ts,@kubb/plugin-zod, and@kubb/plugin-client
bun add @kubb/plugin-react-query
# or
pnpm add @kubb/plugin-react-query
# or
npm install @kubb/plugin-react-querySee the full documentation for configuration options and examples.
Kubb is an MIT-licensed open source project with its ongoing development made possible entirely by the support of Sponsors. If you would like to become a sponsor, please consider: