import useSWR, { mutate } from 'swr';
const handleUpdate = () => {
// Perform a mutation and then update the cache
mutate('/api/data', updatedData);
}
import useSWR, { mutate } from 'swr';
const handleUpdate = () => {
// Perform a mutation and then update the cache
mutate('/api/data', updatedData);
}