When using swr infinite how to clear the cache for all the pages? #2145
Unanswered
pedromcunha
asked this question in
Q&A
Replies: 1 comment 1 reply
-
If you’re using swr v2 beta, you can probably give this approach a try. You can use the matcher to match certain keys and reset the cache |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi! Loving this project, really great work. I'm having some trouble clearing the data fetched by an swr infinite hook. I've been looking at setSize(0) but this just changes the page to 0, it doesn't actually update the cache to remove existing entries.
Beta Was this translation helpful? Give feedback.
All reactions