Remix.run Logo
▲ rgersten 2 hours ago

My recommendation is whatever is currently the top of the subsequent page at the time of click. So if you’re on page 2, whatever is rank 61 at the time of click regardless of if 61 changed after the user loaded 31-60.

▲dang 2 hours ago | parent [-]

Good idea but #61 will often be the #60 you were just looking at.

▲rgersten an hour ago | parent [-]

Oh I see the challenge. So because the ranking could’ve changed, there’s a chance anything on the current page could’ve slipped to the following page. So with my naive algorithm, you could even end up with the replacement for 60 matching the user’s stale 59. In that case I’d go one step further and say whatever is 61 or higher currently that isn’t shown on the user’s stale page. If they refresh or navigate the expectation is rankings could change so it seems like a reasonable compromise. Though I really don’t have strong opinions here and trust y’all to get it right.