From b6983c3f52d017f1ea3269cb5f66eb98f9c3539c Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 29 Sep 2022 06:14:21 +0100 Subject: [PATCH] Fix lint --- beta/src/content/apis/react/useEffect.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }