Forcing vertical scroll RG for chat to load X items on page load, then scroll to load more?

How can I accomplish this? No matter what I do, my RG loads all chat messages (100+) on page load. This has obvious workload ramifications. I’m trying to have it load 25 on page load, then 15 each time the user scrolls up to the oldest visible message (I’m using a reverse RG plugin to flip the messages so that oldest are on bottom).

All threads I search for are from older versions of the Bubble editor and not terribly applicable to today’s interface. Help would be much appreciated. Thanks y’all!

Probably what you want to do is turn off the load all records, use a plugin or some code to flip the RG. Sort the records by latest.

This way you won’t have to scroll to bottom and is the accepted way to do a chat

That’s exactly what I’m doing. No luck.

what about using scroll to item #_itemNumber_ and when he open chat scroll to load x items ?

This is exactly what I’m trying now. I load 25 items on page load, scroll to the last entry. What I’m trying to figure out for this solution is how to automatically load X number of new messages when I scroll to the top of the RG (which is where the oldest message is). I’d prefer an automatic solution vs. any where the user needs to click a button to load more (a clunky solution, IMO). For this I’m trying to use the Scroll Actions plugin from Thimo, but it’s not recognizing my scroll position so it never triggers the workflow to add more rows.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.