diff --git a/beta/src/content/apis/react/useEffect.md b/beta/src/content/apis/react/useEffect.md index bd74c1ee..8281f4fd 100644 --- a/beta/src/content/apis/react/useEffect.md +++ b/beta/src/content/apis/react/useEffect.md @@ -716,7 +716,7 @@ export function useIntersectionObserver(ref) { return () => { observer.disconnect(); } - }, []); + }, [ref]); return isIntersecting; }