-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Urql support #1814
Urql support #1814
Conversation
Implements hooks support for FormidableLabs/urql users. Ref dotansimha#1575
Testing this in our project, this fails because |
That PR was merged, this is basically ready! Note that I have only tested hooks in our project, as we don't use any components. |
@mxstbr that's looks great. |
Note that components support currently fails with this error:
I am not sure how to resolve that. It's caused by |
Fixed component generation in the latest commit, pending the publication of a new version of urql with this patch applied urql-graphql/urql#236 this works great! 💯 @dotansimha this should be ready to ship?!?! |
Thanks @mxstbr ! Looks great. |
I mainly just copied the react-apollo plugin and rewrote the generated code to use the urql API, which differs from the
react-apollo
andreact-apollo-hooks
a bit.Closes #1575