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
{{ message }}
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.
Components: Apollo 2.1, apollo-cache-inmemory, apollo-link-state, apollo-link-rest
I am moving from React Redux to Apollo on client for a project and struggling a bit. I am reading a simple list from server and adding local state variable 'picked' which works fine. When I trigger a mutation to toggle 'picked', I can see the value of 'picked' change in the graphQL workbench. However, when I trigger another mutation, the data returned by the resolver query has the original value of 'picked', i.e., like the cache was never updated.
Components: Apollo 2.1, apollo-cache-inmemory, apollo-link-state, apollo-link-rest
I am moving from React Redux to Apollo on client for a project and struggling a bit. I am reading a simple list from server and adding local state variable 'picked' which works fine. When I trigger a mutation to toggle 'picked', I can see the value of 'picked' change in the graphQL workbench. However, when I trigger another mutation, the data returned by the resolver query has the original value of 'picked', i.e., like the cache was never updated.
The list is mapped to a series of checkboxes. When a checkbox is clicked, I am toggling the 'picked' variable using mutation and resolver:
The text was updated successfully, but these errors were encountered: