dotansimha / dotansimha/graphql-code-generator-community

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

Open
#575 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
137
Forks
195
Avg merge
6h 20m
Merged PRs (30d)
16

Description

**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

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files or tests. Start in the typescript-react-query generated-hook implementation and inspect how useQuery arguments are produced for v5. Done means generated hooks accept the queryClient parameter in the matching position, with coverage for that signature.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.