fix: add SSR safety and fix memory leak (qa-requested)
- Add 'use client' directive to GlobalBackground component - Fix SSR-unsafe document access in usePageVisibility hook - Fix memory leak in useIntersectionObserver cleanup function Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
'use client';
|
||||
|
||||
import { usePageVisibility } from '@/hooks/usePageVisibility';
|
||||
import { useIntersectionObserver } from '@/hooks/useIntersectionObserver';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user