dotansimha / dotansimha/graphql-code-generator
Allow passing metaData to fetcher in generated react-query hooks
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 1.4k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 23
Description
**Is your feature request related to a problem? Please describe.**
We need to pass additional args to the fetcher, e.g., a `signal` which is currently impossible with a generated code despite the library allowing it.
**Describe the solution you'd like**
I'd like an interface through which the arguments could be passed to the fetcher
**Describe alternatives you've considered**
The only alternative to manually edit the generated file every time which, of course, is far from ideal.
**Additional context**
I'm happy to suggest a PR adding this functionality and relevant tests
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.