News for hackers. Stuff that matters.
Re:Infinite Scrolling: When to Use It, When to Avoid It by spookthesunset on Saturday September 10, 2022 @11:33AM (#32791539)
> you’re brought back to where you left off

Which is all fun and games until the “page” is actually a mutable and constantly changing list. With a mutable list there is no concept of “where you left off”.

Re:Infinite Scrolling: When to Use It, When to Avoid It by Wowfunhappy on Saturday September 10, 2022 @11:41AM (#32791619)
As alluded to in sibling comments—does pagination fix this problem?
Re:Infinite Scrolling: When to Use It, When to Avoid It by squeaky-clean on Saturday September 10, 2022 @12:47PM (#32792286)
This is caused by pagination. Without pagination, there's no pages that can get out of sync.

More specifically it's caused by offset pagination. The kind of pagination where you track "user is 90 items deep into the list" or "user is 3 pages into list and each page is 30 items"

Alternatively, index based pagination works by going "the last item the user viewed was id=12345". With this model refreshing the view won't cause a change, but the downside is you lose an easy way to tell the user how many "pages" deep they are. Even though "pages" is a flawed metaphor in a dynamic stream of data, users still like to see "you're on page 3 of 1 million"

Also this is only considering "append-only" style lists. Like comments sorted by time, or a list of versions of software, etc. If your list is dynamic, like the pages of Hacker News, where isn't ordered consistently but is instead a dynamic order or has mutable items, pagination will still be inconsistent.