Skip to content

How to clear the entire cache storage? #3280

Answered by TkDodo
shamxeed asked this question in Q&A
Discussion options

You must be logged in to vote

not sure which "cache storage" you are talking about. The react-query in-memory cache can be cleared with queryClient.clear()

other than that, if you are using any of the storage plugins - if you clear the queryCache, it should also sync that to external storages.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by shamxeed
Comment options

You must be logged in to vote
4 replies
@TkDodo
Comment options

@mijash-he
Comment options

@TkDodo
Comment options

@mijash-he
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants