updates
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user