Hello. So, i encountered some issues while building a pagination controller that would work for my case. From the many turorials i’ve gatherd info and came up with this controller. Hope it helps you all.
Happy coding!.
Infinite Scroll with HOTWire Part 1: Configuration - DEV Community
and
Infinite Scroll with HOTWire - Part 2: Adding Stimulus - DEV Community