Replies: 1 comment
-
@Arjun-sna would you mind providing a minimal code example to explain what you want to achieve here? I saw you PR here #720 , why would you like to only clean the cache in that case? |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I'm using
useSWR
in a component and rendering result. In that I have setdedupingInterval
as 60 seconds. With that, a resource item in the previously fetch data can be updated in a separate component. Sincemutate
cannot be used in this case to revalidate the data, I tried clearing the cache.But even after clearing the cache, the
useSWR
returns old data.Basically the question is, is there a way to revalidate within the
dedupingInterval
time by clearing cache?Beta Was this translation helpful? Give feedback.
All reactions