This commit is contained in:
Dan Abramov
2022-09-29 06:14:21 +01:00
parent d7761edc25
commit b6983c3f52

View File

@@ -716,7 +716,7 @@ export function useIntersectionObserver(ref) {
return () => {
observer.disconnect();
}
}, []);
}, [ref]);
return isIntersecting;
}