diff --git a/src/components/Views.tsx b/src/components/Views.tsx index 33d5500..3dbb26a 100644 --- a/src/components/Views.tsx +++ b/src/components/Views.tsx @@ -13,9 +13,7 @@ type ViewsType = { } export function Views({as: Component = 'span', slug}: { as?: ElementType, slug: string }) { - const {data} = useSWR(`/api/views/${slug}`, fetcher, { - revalidateOnFocus: false - }) + const {data} = useSWR(`/api/views/${slug}`, fetcher) const views = Number(data?.views) useEffect(() => {