Skip to content
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

[feature/Apollo] Upgrade to Apollo Client 2.0 #1492

Merged
merged 3 commits into from
Jan 5, 2018
Merged

[feature/Apollo] Upgrade to Apollo Client 2.0 #1492

merged 3 commits into from
Jan 5, 2018

Conversation

tim-soft
Copy link

@tim-soft tim-soft commented Jan 1, 2018

I thought I'd blow the dust off of the Apollo branch with an upgrade from Apollo Client 1.x -> 2.x

Why upgrade to Apollo Client 2.0??

tldr; The newest version is 2–5x faster, 40% smaller and the network interface is composable

The biggest change in this PR is that I moved the Apollo Cache out of Redux and into Apollo's InMemoryCache , eliminating the need for Thunk and createHelpers.js while also simplifying createApolloClient.

Logging and other events related to the GraphQL API are now handled by composable Apollo Links https://www.apollographql.com/docs/link/

@langpavel @koistya @frenzzy

@tim-soft tim-soft changed the title ⬆️ Upgrade to Apollo Client 2.0 Upgrade to Apollo Client 2.0 Jan 1, 2018
@tim-soft tim-soft changed the title Upgrade to Apollo Client 2.0 [feature/Apollo] Upgrade to Apollo Client 2.0 Jan 1, 2018
@tim-soft
Copy link
Author

tim-soft commented Jan 5, 2018

Weighing some options for logging in development as we can't use redux-logger anymore.

I may settle on this one as it's nearly identical to the Apollo 1.x logging output

https://github.com/blackxored/apollo-link-logger

@langpavel langpavel merged commit a65988a into kriasoft:feature/apollo Jan 5, 2018
@langpavel
Copy link
Collaborator

Thanks @tim-soft

@tim-soft tim-soft deleted the feature/apollo branch January 5, 2018 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants