Чистый кешв SWR
import { useSWRConfig } from 'swr'
const { cache } = useSWRConfig()
// to clear
cache.clear()
Radmehr Aghdam
import { useSWRConfig } from 'swr'
const { cache } = useSWRConfig()
// to clear
cache.clear()