Replies: 1 comment 19 replies
-
React Apollo plugin has a completely different approach comparing to generic-sdk. One generates React hooks and the other one generates vanilla-js framework independent functions/methods that return Promises or AsyncIterables. |
Beta Was this translation helpful? Give feedback.
19 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone,
I'm very new to this project and I'm having an issue.
I have some scenario where I need to make an API call outside of a react components (example: callbacks, async validation etc)
while callbacks can just use the lazy version, it's still not good, currently it returns the data back to original components.
I'm looking for a way to use something like graphql-request but with apollo client, because I still want the hooks, but I want additional operations support.
Is that already possible? or is my only hope to have two graphql client in a single project?
I could use the typescript-generic-sdk, apollo client being so popular I was hoping I could just set a flag which also generates SDK on typescript-react-apollo plugin.
Am I missing something? Any help would be appreciated :)
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions