planetary-social / nos

nos.social social media for all of us, using nostr
https://nos.social
Mozilla Public License 2.0
121 stars 14 forks source link

Paging breaks when scrolling fast #1348

Open mplorentz opened 2 months ago

mplorentz commented 2 months ago

Reported here and shipped as a known issue.

Steps to reproduce:

  1. On a device with a database you haven't cleared in a few days, open the home feed
  2. Choose a large relay from the relay filter
  3. Scroll really far down as fast as you can (grabbing the scroll bar on the Mac is a good way to do this) Expected: you see notes from everyone on the relay Actual: you only see notes from the people you follow
mplorentz commented 2 months ago

Relying on the PagedNoteDatasource to call loadMore() when the user scrolls is not enough anymore. I think we need the PagedRelaySubscription to keep paging down internally until it catches up to what the user is looking at.