Metaculus / Metaculus/metaculus
"load more" appears even when there is no more to load
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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