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.
This works well. However when I change the typeDefs and add new types, and add values to the deafults they are always overwritten, since persistor.restore() is called later. If I reverse this mechanism then my cached state is overwritten by defaults. I am stuck at how to overcome this.
The text was updated successfully, but these errors were encountered:
Without defaults, I'd get query errors when firing resetStore. With defaults, a page refresh will somehow use those defaults instead of what has been restored by the cache persistor.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
First of all thank you all for this wonderful library, I cannot thank enough.
I am using below type definition with apollo-link-state
Now I use CachePersistor from apollo-cache-persist like below in componentDidMount
This works well. However when I change the typeDefs and add new types, and add values to the deafults they are always overwritten, since persistor.restore() is called later. If I reverse this mechanism then my cached state is overwritten by defaults. I am stuck at how to overcome this.
The text was updated successfully, but these errors were encountered: