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
@apollo/react-common support #2112
Comments
ah ok. that looks like a start. from overlooking it seems to be incomplete. will give this a try and report my findings. |
@OneCyrus Thanks, waiting for your update on the missing features :) |
just tried the alpha with the following config:
and here are the thins which i needed to do: 1. replace importsreplace
with
2. replace types/stringsi replaced the following strings with new values
3. change generics of QueryHookOptionsthe generic of QueryHookOptions requires TData type now. currently it only has TVariables. e.g.
that's about it |
Thank you so much @OneCyrus ! I'll take a look soon :) |
Until @apollo/react-common's stable version is released, you can use the following alpha version;
|
thanks, I'll give this a try |
Available in 1.5.0 🎉 |
Having trouble using react-apollo 2 now. Even customizing with
Getting incorrect types since MutationProps changed to MutationComponentOptions and QueryProps changed to QueryComponentOptions. |
@zamiang See here; |
Is your feature request related to a problem? Please describe.
please add support for @apollo/react-common (react-apollo 3). currently the generated types don't work with anymore.
Describe the solution you'd like
generated types which work with the new @apollo/react-common package. HOC, Components and Hooks.
Describe alternatives you've considered
there's no alternative.
Additional context
@apollo/react-common changes some types so there are breaking changes. probably it's just a different mapping to the new types.
The text was updated successfully, but these errors were encountered: