@tanstack/react-query name customization #2782
-
how to customise the generated function names when using the @tanstack/react-query plugin? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @Lizzard-Galaxy! I'm Dosu and I’m helping the openapi-ts team. You can customize the generated function names in the @tanstack/react-query plugin by using the .name and .case options in the plugin configuration. This applies to queryOptions, mutationOptions, infiniteQueryOptions, queryKeys, and infiniteQueryKeys. For example, you can set a custom suffix or change the casing pattern for the generated functions. See the official documentation for details and configuration examples: heyapi.dev/openapi-ts/plugins/tanstack-query. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Hi @Lizzard-Galaxy! I'm Dosu and I’m helping the openapi-ts team.
You can customize the generated function names in the @tanstack/react-query plugin by using the .name and .case options in the plugin configuration. This applies to queryOptions, mutationOptions, infiniteQueryOptions, queryKeys, and infiniteQueryKeys. For example, you can set a custom suffix or change the casing pattern for the generated functions. See the official documentation for details and configuration examples: heyapi.dev/openapi-ts/plugins/tanstack-query.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
