-
Notifications
You must be signed in to change notification settings - Fork 69
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
Migrate to Apollo Client 3.0 #468
Comments
I guess we're lucky since nothing broke on our end, I just updated all files with the given transform. I believe only index.tsx needed one small fix. |
Good to know that nothing major breaks :) The type errors may come from the The other choice is going without |
Turns out these errors came from
I am not sure why it didn't cause problems before but creating copy of challenges before sort-mapping prevented these errors. |
Sure, go ahead and open one! We can work out the issues then. |
All the Apollo Client packages have been merged into a single one for version 3. This means that all the packages we use from Apollo are now included within
@apollo/client
. Fortunately, they have published a migration guide, where it says that there have been breaking changes from version 2. While there's a chance that nothing breaks on our end, I opted to leave this update out of the previous updates PR (#464) because it may involve a little more work.On this same subject, I noticed we use next-with-apollo to provide a HOC for our components. While this is useful, it might also be not necessary, as I found this example with Apollo from Vercel where Next is integrated with a GraphQL back-end using the Apollo client.
To do
@apollo/client
next-with-apollo
is working correctly, as there is an open issue about supporting Apollo Client v3.The text was updated successfully, but these errors were encountered: