SPB Git forge
3commits 1branches 0releases
417.0 KBsize
maindefault branch
10 days agolast push
TypeScript 66.5% Python 30.9% JavaScript 1.4% CSS 0.7%
368 B · 12 lines tsx
Raw Blame History
1'use client';2import { useEffect } from 'react';3import { clientApi } from '@/lib/client-api';45/** Fire-and-forget page-view beacon (feeds the "trending" list). Once per mount, never blocks rendering. */6export function ViewBeacon({ type, id }: { type: string; id: string }) {7  useEffect(() => {8    void clientApi.view(type, id);9  }, [type, id]);10  return null;11}12