Can't seem to delete specific cache #2876
Unanswered
welschmoor
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Update: I solved it already, thank you.
Hello,
I managed to delete all cache with the following call:
but the filter function does not seem to work when I want to delete only specific caches:
any idea what I am doing wrong?
The useSWR itself looks like this:
Update: maybe my key is not a string, but an array, the first element of which is 'searchSuggestions' ? Will have to look at it tomorrow
Update2: indeed I solved it, since the key remains an array
Beta Was this translation helpful? Give feedback.
All reactions