Skip to content

Latest commit

 

History

History

README.md

@kubb/plugin-react-query

Kubb logo

npm version npm downloads Coverage License Sponsors

@kubb/plugin-react-query generates TanStack Query hooks from your OpenAPI specification. Each operation becomes a typed useQuery, useMutation, or useInfiniteQuery hook.

Features

  • Generates useQuery, useMutation, useInfiniteQuery, and queryOptions hooks
  • 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

Installation

bun add @kubb/plugin-react-query
# or
pnpm add @kubb/plugin-react-query
# or
npm install @kubb/plugin-react-query

Documentation

See the full documentation for configuration options and examples.

Supporting Kubb

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:

My sponsors