Skip to content

enhancement: Add Next.js loading.tsx skeleton for country leaderboard pages #276

Open

Description

@O2sa

When navigating between countries in /leaderboard/[country], there is no route-level loading.tsx file. Next.js App Router uses loading.tsx to instantly stream an instant loading state during server rendering.

Motivation

Adding a route-level loading.tsx with skeleton cards prevents perceived lag and layout shift during ISR/SSR country data loading.

Tasks

  • Create src/app/leaderboard/[country]/loading.tsx and src/app/leaderboard/loading.tsx.
  • Render AppHeader, a table skeleton or cards skeleton matching DashboardSkeleton, and AppFooter.

Files to Check

  • src/app/leaderboard/[country]/loading.tsx
  • src/app/leaderboard/loading.tsx

Tip

🚀 Want to contribute?
Comment assign me to be automatically assigned to this issue via our GitHub Actions bot. Happy coding! ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions