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
33 sats \ 6 replies \ @sox 6h
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
63 sats \ 0 replies \ @sox 3h
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
Am I tripping or are a lot of the comments on this thread duplicated lol??
reply
0 sats \ 2 replies \ @sox 4h
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