diff --git a/components/ui/Views.tsx b/components/ui/Views.tsx index d263af9..ff9af28 100644 --- a/components/ui/Views.tsx +++ b/components/ui/Views.tsx @@ -49,7 +49,7 @@ export function Views({as: Component = 'span', slug, className, shouldUpdateView ) } - registerView() + registerView().then(() => mutate(`/api/views/${slug}`)) } }, [])