dotansimha / dotansimha/graphql-code-generator-community

[react-apollo] Add support for `useLoadableQuery`

Open
#646 0 comments 0 reactions 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.**

Add support for [`useLoadableQuery`](https://www.apollographql.com/docs/react/api/react/hooks/#useloadablequery) released in `@apollo/client` v3.9.

**Describe the solution you'd like**

Allow `typescript-react-apollo` to generate `useLoadableQuery` hook with the current `withHooks: true` option.

**Describe alternatives you've considered**

N/A

**Additional context**

N/A

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the typescript-react-apollo generator and the current withHooks option, then compare its generated hooks with the @apollo/client v3.9 useLoadableQuery documentation. Done means the generator can produce a useLoadableQuery hook when withHooks: true is enabled.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.