[BUG] Homepage says "No players yet" when the leaderboard is slow or fails to load

Open
#4,045 2 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@nj-1812 is already working on this.

Since Dec 3, 2026.

  • #4048 by @nj-1812 — open

Assessment

This issue has not been assessed yet.

Description

status:assigned

What happens

On the homepage, if the leaderboard build takes longer than 8 seconds or throws, fetchLeaders() in src/app/page.tsx returns { leaders: [], playerCount: 0 }. The hi-score table then says "No players yet. Be player 1." and "0 players ranked", even though the real board has 200+ players. I saw this on devtrack.live on a cold load; a reload showed "248 players ranked".

Expected

A failed or slow load should say the scores are unavailable (with a link to the full board), not that nobody is playing. A genuinely empty board can keep the "Be player 1" message.

I'd like to work on this.

Dominant language
TypeScript
Stars
246
Forks
436
Avg merge
9h 33m
Merged PRs (30d)
213

Getting set up

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.

More from Priyanshu-byte-coder/devtrack

All issues in Priyanshu-byte-coder/devtrack

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.