#SWR

1 messages · Page 1 of 1 (latest)

magic cobalt
#

how to get cache value by key - '/api/data'. I get from here - const { cache } = useSWRConfig(); I get undefined if I enter this - cache.get('/api/data');. if enter it like this - console.log(cache), then it will be displayed as in the picture