dotansimha / dotansimha/graphql-code-generator-community
(react-query) Adding both a hook version of exposing fetcher and passing in the query context
- 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.**
Two problems
- We should be able to expose a fetcher for the query function even when using a hook
- We should pass in the query context so that we can access signal: Abort especially as that will be the only way to cancel queries it in react-query 4 and it will allow access to meta which should solve passing data to the fetcher. https://react-query.tanstack.com/guides/query-cancellation
**Describe the solution you'd like**
The fetcher is easy a hook that returns the function simples
The context would be using the same way infinite query works and pass a context down to the fetcher
**Describe alternatives you've considered**
Both of these are currently not available
**Additional context**
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.