Skip to content

How to clear all caches at once. #56

Closed Answered by posva
minht11 asked this question in Questions
Discussion options

You must be logged in to vote
  • You can clear all entries with

      const caches = useQueryCache() // must be used within a setup like any composable
      for (const entry of caches.getEntries()) {
        caches.remove(entry)
      }
  • refetch ignores fresh status while refresh doesn’t refetch fresh data

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by posva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants