dotansimha / dotansimha/graphql-code-generator
Support for `loader`-functionality from `@remix`/`react-router-dom`
- 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.**
With the Blog Article from Ryan Florence [Remixing React Router](https://remix.run/blog/remixing-react-router) the `loader` Pattern from [Remix](https://remix.run/docs/en/v1/guides/data-loading) is said to move to `react-router-dom@6.4`.
I haven't found a way to populate the `loader`-Property with hooks
**Describe the solution you'd like**
I'm currently using `graphql-codegen` with `typescript-urql` and since we are generating a hook there and no awaitable fetch function we can't use the functionality of `loader` with Hooks yet?
I was wondering if we might find a way to generate an awaitable fetch function that calls in my context `client.query` based on the graphql querries which then populates the `loader`.
If there is any solution for this let me know, I really like to hear your opinion on this.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.