HTML 77.2%
TypeScript 10.5%
Python 9.6%
JavaScript 2.5%
1'use client';2import { useEffect } from 'react';3import { clientApi } from '@/lib/client-api';45/** Fire-and-forget page-view beacon (POST /views { path }) once per entity page mount. Renders nothing. */6export function ViewBeacon({ path }: { path: string }) {7 useEffect(() => {8 const t = setTimeout(() => void clientApi.view(path), 800);9 return () => clearTimeout(t);10 }, [path]);11 return null;12}13