Рет қаралды 1,374
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): stimulus-use.github.io/stimul...
- Kaminari: github.com/kaminari/kaminari
- Rails request.js: github.com/rails/request.js
And you can find a gist of the code here:
gist.github.com/phawk/cbdb48a...
P.s. Want access to next week's video right now? Head on over and sign up on rapidruby.com now!
---
Has this video helped you out? Consider buying me a coffee to say thanks and support future content like this, thanks!
app.payhere.co/rapid-ruby/buy...
You can also find more content like this, including premium courses and exclusive community and mentorship to help you level-up! Head over to rapidruby.com and use the code RRKZbin for a discount!