import { mutate } from 'swr'; export const handleMutate = (url: string) => { mutate((key) => typeof key === 'string' && key.startsWith(url), undefined, { revalidate: true, }); };