graphql-code-generator-community icon indicating copy to clipboard operation
graphql-code-generator-community copied to clipboard

typescript-react-query: expose `useQuery` `queryClient` parameter with v5

Open matthieu-foucault opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

In v5, useQuery() has a second parameter for the queryClient. It's not exposed in the generated hooks.

Describe the solution you'd like

Generated hooks should match the useQuery signature and allow to set the queryClient parameter

matthieu-foucault avatar Jan 16 '24 23:01 matthieu-foucault