I would like to know how to build Vue 3 Apollo apps with queries and mutations. I'm familiar with react useQuery hook. It re-renders the component whenever the cached data has been changed (by mutations).
I have tried:
- useQuery (https://v4.apollo.vuejs.org/api/use-query.html)
- ApolloQuery (https://v4.apollo.vuejs.org/guide-components/query.html)
In all cases it just loads the data once and doesnt react to cache data changes.
I undestand that I can build own setup by Apollo client or refetch the queries. I can even invalidate components by its keys. This is not really as elegant as the React useQuery hook is.
I was curious whether there is any ready-made solution and the best practice for smooth graphql operations in Vue 3.