You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shouldn't the react-apollo-hooks/tutorial-site/content/optimistic-update-mutations/2-mutation-cache.md example just define a valid optimisticResponse and skip defining the cache update as that will be handled automatically by Apollo for a simple update?
Note that I am new to Hasura, Apollo and GraphQL so might be wrong about this 😄
The text was updated successfully, but these errors were encountered:
martinpengellyphillips
changed the title
Explicit cache update not needed when valid optimisticResponse defined in react apollo hooks?
Explicit cache update not needed when valid optimisticResponse defined in react apollo hooks?
May 2, 2020
@martinpengellyphillips - Hi, you are right. Defining an optimistic response should do just fine. The tutorial goes over different ways of doing things to cover all sorts of use cases in this small todo app 😄 (Like optimistic UI, manual cache updates, using client.query vs useQuery hook) and hence the usage.
Shouldn't the
react-apollo-hooks/tutorial-site/content/optimistic-update-mutations/2-mutation-cache.md
example just define a validoptimisticResponse
and skip defining the cacheupdate
as that will be handled automatically by Apollo for a simple update?E.g.
Note that I am new to Hasura, Apollo and GraphQL so might be wrong about this 😄
The text was updated successfully, but these errors were encountered: