The BEST way to build Infinite Scroll using Hotwire
Related videos
Follow along as I implement infinite scroll pagination on the rapidruby.com lessons page. I’ll be using the useIntersection helper from stimulus-use to detect when you have scrolled to the bottom of the page and then Turbo Streams to insert each new block of videos.
Some of the libraries used in this video:
- stimulus-use (useIntersection): https://stimulus-use.github.io/stimulus-use/#/use-intersection
- Kaminari: https://github.com/kaminari/kaminari
- Rails request.js: https://github.com/rails/request.js