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

Đang mở
#4,045 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@nj-1812 đang làm issue này rồi.

Từ ngày 3/12/2026.

  • #4048 của @nj-1812 — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
246
Fork
436
Merge trung bình
9 giờ 33 phút
Pull request đã merge (30 ngày)
213

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Priyanshu-byte-coder/devtrack

Tất cả issue của Priyanshu-byte-coder/devtrack

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.