-
I tried mutating a parent url eg: url={ in a child component by doing import { mutate } from "swr"; mutate(url); but it doesn't revalidate. Please am I doing something wrong? I said the documentation is old because I also tried to use the documentation's import useSWR, { useSWRConfig } from 'swr' function App () { but useSWRConfig doesn't seem to appear |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
Beta Was this translation helpful? Give feedback.
mutate
is working, we have tests covered. Which version of SWR are you currently using? Can you provide a bug reproduction on https://codesandbox.io?