This commit is contained in:
yohlo
2025-09-24 11:02:56 -05:00
parent 6760ea46f9
commit 36f3bb77d4
8 changed files with 34 additions and 14 deletions

View File

@@ -37,6 +37,7 @@ export function useServerEvents() {
const timeoutRef = useRef<NodeJS.Timeout | null>(null);
useEffect(() => {
if (typeof window === 'undefined') return;
if (!user?.id) return;
shouldConnectRef.current = true;