DEV Community

Discussion on: Building Infinite scroll in React with hooks and Intersection Observer

Collapse
mejanhaque profile image
Muhammad Mejanul Haque

i had a problem with using boundingClientRect instead of isIntersecting on page load. if the element is visible on page load it does not work, but intersectionRation and isIntesecting worked. so moved into isIntesecting. if there is a better method, it would be helpful. Thanks for the post by the way.

Collapse
somtougeh profile image
Somto M.Ugeh Author

Thank you, Muhammad. I would look into this and get back to you.