Replies: 2 comments
-
That's because enabling persistence of cache is done asynchronously and it can be after vue-apollo's cache existence check. Cache restoration must be notified in some way |
Beta Was this translation helpful? Give feedback.
0 replies
-
@raviqqe the linked repository is returning a 404. Do you have a way to put your example code somewhere else, in a gist perhaps? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use
apollo-cache-persist
. However, when the page is refreshed, my code is always loading the data from the network also with policies such asfetchPolicy: cache-first
. Although the local storage has the properapollo-cache-persist
data stored.Here are relevant parts of my code (simple testing app scaffolded using vue-cli 3):
main.js
:HelloWorld.vue
:Many thanks for any hint.
Beta Was this translation helpful? Give feedback.
All reactions