pull down to refresh

This post’s got a 'bug' when sorting items by ‘recent’. It doesn’t sort here, only works after you click ‘recent’ and hit refresh (F5). After the items are sorted, new comments don’t show up at the top. cc/ @k00b @ek @sox

I can reproduce here, but not in dev. Let's see what's causing this.

For now one clue is that this only happens in client-side navigation: click on a comment -> from the top SN bar go back -> sorts stop working

edit: only here

reply

Weird, the 'recent' filter is already working.

reply

This confirms my suspects on pagination. When there are a lot of comments, but we didn’t reach the threshold for pagination, comments get duplicated (2-3 times).

Thanks for noticing, I’m working on a fix ^^

reply
33 sats \ 1 reply \ @sox 7 Nov 2025

An issue to track progress on this bug has been opened!
https://github.com/stackernews/stacker.news/issues/2634

reply

Thanks for the shoutout!

reply

Am I tripping or are a lot of the comments on this thread duplicated lol??

reply

No, you’re not tripping…

Seems there are some issues with pagination that are related with the issue @0xbitcoiner reported. I’ll open a github issue in the meantime.

reply

Sorting my recent worked on desktop but not on mobile for me just fyi

reply

I've never broken Stacker News before

That should earn me a badge

reply

Thanks for the tip

reply