Hello,
Is way how use apollo-client 3.0 without react/hooks?
How I should call query or mutation without react?
The ApolloClient
class has query()
and mutate()
methods that you can use without React. https://www.apollographql.com/docs/react/api/core/ApolloClient/#apolloclient-functions
@sneznaovca maybe you are like me and missed:
https://www.apollographql.com/docs/react/migrating/apollo-client-3-migration/#using-apollo-client-without-react
Most helpful comment
@sneznaovca maybe you are like me and missed:
https://www.apollographql.com/docs/react/migrating/apollo-client-3-migration/#using-apollo-client-without-react