dotansimha / dotansimha/graphql-code-generator-community

Allow toggling useSuspenseQuery generation

Open
#623 3 comments 5 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.**

useSuspenseQuery support was added in `4.1.0`, this is great. But `useSuspenseQuery` requires Apollo 3.8 and our app is still in the process of upgrading to it. This however has added `useSuspenseQuery` to all our generated files and gives a ton of warnings because it's running an Apollo hook that doesn't yet exist.

**Describe the solution you'd like**

Could we add config to allow toggling the `useSuspenseQuery` generation? As far as I can tell there isn't a way yet, but please let me know if there is.

**Describe alternatives you've considered**

Currently we've had to downgrade to the version prior to the minor update.

**Additional context**

Thank you!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.