Metaculus / Metaculus/metaculus

"load more" appears even when there is no more to load

Open
#3,932 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Low Priority Stale
Dominant language
TypeScript
Stars
113
Forks
34
Avg merge
16h 34m
Merged PRs (30d)
30

Description

user exmaterae suggests:

Sometimes there is a "load more" option even though everything is already loaded. (I saw it in the latest Pro tournament for instance)

I think that it happens when the default pagination ends up perfectly dividing the exact number of items retrievable.

e.g. there are 40 Questions total, pagination defaults to retrieving them in lots of 20. You get a "load more" since the first returned query was "full" (had 20 items), but when you hit the button, the next return has the remaining 20 items but still looks "full" so the UI assumes there's more.

I could be wrong, though.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue described in the report with 40 items and a pagination size of 20, then trace the frontend pagination and "load more" behavior. Confirm that the control disappears after all items are loaded, including when the total divides evenly by the page size.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.