Scrum4Me/components/solo/realtime-bridge.tsx
Scrum4Me Agent eb6ace62c8 feat(PBI-49): add BEM sub-element data-debug-id to components/solo/*
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 22:12:15 +02:00

18 lines
766 B
TypeScript

// SoloRealtimeBridge — mount in de (app)-layout zodat de SSE-verbinding
// blijft staan over Server Action-refreshes heen.
//
// Stream opent zodra er een actief product is (ongeacht het pad), zodat
// de Live-status-dot en worker-presence-indicator in de NavBar overal
// werken. Buiten /solo is de solo-store leeg en zijn task-events no-ops
// (zie stores/solo-store.ts handleRealtimeEvent), dus de stream gedraagt
// zich automatisch als lichte presence-stream tot SoloBoard mount.
'use client'
import { useSoloRealtime } from '@/lib/realtime/use-solo-realtime'
// render-loos — geen JSX-root, data-debug-id niet van toepassing
export function SoloRealtimeBridge({ productId }: { productId: string | null }) {
useSoloRealtime(productId)
return null
}