Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

clear swr cache

import { useSWRConfig } from 'swr'

const { cache } = useSWRConfig()
// to clear
cache.clear()
 
PREVIOUS NEXT
Tagged: #clear #swr #cache
ADD COMMENT
Topic
Name
5+3 =