Replies: 1 comment 2 replies
-
Hi @nutrian, it's honestly a preference. Feel free to open this as a feature request! To answer your question why though, the current output "forces" you to use the native TanStack APIs as opposed to completely abstracting them. Your request makes total sense though, there might be people who prefer to abstract the whole hook. I'm not sure how many people prefer this syntax, we will find out soon. The only question I'd have is around the hook API, since we still want to allow you to customise each request with Hey API-specific options. I'm assuming we'd be adding another parameter to the function, curious if you have any thoughts on that? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Why doesn't the react query plugin generate hooks like
useGetEndpointQuery
orusePostEndpointMutation
?Components require two imports
useQuery
oruseMutation
in addition to the generatedgetEndpointOptions
It would be nice to import just
useGetEndpointQuery(options)
orusePostEndpointMutation(options)
Beta Was this translation helpful? Give feedback.
All reactions