Apollo-client: Apollo Client 3.0 vue/angular/etc...

Created on 21 Oct 2019  路  1Comment  路  Source: apollographql/apollo-client

Based on the ROADMAP.md, this draft PR and this comment, it's not super clear how/if the apollo vue/angular/etc. clients will be supported. There are mentions of merging react-hooks directly into into Apollo Client 3.0, but no mention of other libraries. Are there plans to support other frameworks/libraries besides react?

Most helpful comment

@ksmithut Yes, non-React view layers will be supported. ApolloClient can still be used by itself, and integrated with other libraries/frameworks. Apollo's React integration is merging into the core, but @apollo/client is fully tree-shakable. If you're using a modern build/bundling tool like Webpack, Rollup, etc. and aren't importing any of the React elements of @apollo/client, they'll all be removed from your final bundle. You can see some of this in action here, but we'll have docs that explain all of this in more detail. Thanks!

>All comments

@ksmithut Yes, non-React view layers will be supported. ApolloClient can still be used by itself, and integrated with other libraries/frameworks. Apollo's React integration is merging into the core, but @apollo/client is fully tree-shakable. If you're using a modern build/bundling tool like Webpack, Rollup, etc. and aren't importing any of the React elements of @apollo/client, they'll all be removed from your final bundle. You can see some of this in action here, but we'll have docs that explain all of this in more detail. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joergbaier picture joergbaier  路  3Comments

gregorskii picture gregorskii  路  3Comments

stubailo picture stubailo  路  3Comments

canercandan picture canercandan  路  3Comments

elie222 picture elie222  路  3Comments