dotansimha / dotansimha/graphql-code-generator-community
Allow toggling useSuspenseQuery generation
- 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.