hey-api / openapi-ts

🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more. Support: @mrlubos
https://heyapi.dev
Other
1.39k stars 107 forks source link

Is there any options that supports generate useSuspenseQuery in tanstack query plugin ? #1303

Closed fecapark closed 3 days ago

fecapark commented 3 days ago

Description

Is there any options that supports generate useSuspenseQuery in tanstack query plugin?

It only supports generating useQuery, useInifniteQuery, useMutation.

mrlubos commented 3 days ago

@fecapark I think there's a misunderstanding of what gets generated. We do not generate useQuery(), useInfiniteQuery(), or useMutation(). Instead, we generate options for these hooks. And you can totally use the generated options with useSuspenseQuery(), just try it!