How to show Suspense Fallback when calling mutate #4146
-
const { data, mutate } = useSWR(key, fetcher, {
suspense: true,
})when I call |
Beta Was this translation helpful? Give feedback.
Answered by
FanetheDivine
Jul 24, 2025
Replies: 1 comment
-
|
I got it mutate(undefined)call |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
FanetheDivine
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I got it
call
mutatewith no arguments, it will just revalidate databut if arg1 is
undefined, the cache will be clear, just like the first time fetching data by this key