DEV Community

Discussion on: Infinite scroll pagination with Rails and Stimulus

Collapse
 
adrienpoly profile image
Adrien Poly

Hey nice article, if I may suggest (biased point of view of course) this is a place where you can simplify the IntersectionObserver boilerplate with the useIntersection Stimulus-Use mixin. I made a similar example some time ago using it.

github.com/adrienpoly/infinite-scr...

Collapse
 
alexandreruban profile image
Alexandre Ruban • Edited

Thanks @adrienpoly for the comment! I'll have a look at it!

And thanks also for implementing the get function in @rails/request.js! It is very useful!