Is there a way to clear the cache? #1528
Answered
by
kitten
regirock365
asked this question in
Q&A
-
Is there a way to clear the cache? There are some mutations in my application that call for a refresh of the cache and I couldn't find such a method in the docs so I thought I'd ask. |
Beta Was this translation helpful? Give feedback.
Answered by
kitten
Apr 9, 2021
Replies: 1 comment 2 replies
-
Specifically which cache? In Graphcache we'd recommend mutations to selectively use |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
kitten
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Specifically which cache? In Graphcache we'd recommend mutations to selectively use
cache.invalidate
, and in the default cache, if you do want to wipe everything, we recommend you to recreate the client, which should automatically rerender everything in your app and refetch all data.