Skip to content

Latest commit

 

History

History
32 lines (29 loc) · 1.26 KB

File metadata and controls

32 lines (29 loc) · 1.26 KB
title OpenAPI React Query Codegen
description Get started building your docs site with Starlight.
template splash
hero
tagline image actions
Code generator for creating React Query (also known as TanStack Query) hooks based on your OpenAPI schema.
file
../../assets/logo.webp
text link icon
Get Started
/guides/introduction/
right-arrow
text link icon variant
View on GitHub
external
minimal

import { Card, CardGrid } from '@astrojs/starlight/components';

Generates custom react hooks that use React(TanStack) Query's useQuery, useSuspenseQuery, useMutation and useInfiniteQuery hooks. Generates custom functions that use React Query's `ensureQueryData` and `prefetchQuery` functions to integrate into frameworks like Next.js, Remix, and TanStack Router. Generates pure TypeScript clients generated by [@hey-api/openapi-ts](https://github.com/hey-api/openapi-ts) in case you still want to do type-safe API calls without React Query.