About
I’ve had some cases when I needed to do infinite scroll. In the past, I’ve used libraries and event listeners. Now, I just use IntersectionObserver. I also paired it with @tanstack/react-query
’s useInfiniteQuery
.
See my blog post for more insight.