const fetcher = url => fetch(url).then(r => r.json()) const { data, isValidating, error, mutate } = useSWR(url, fetcher, { revalidateOnMount: true, ...
確定! 回上一頁