Skip to content

fix(leaderboard): remove nested Link wrapper causing hydration error#17

Open
craftsoldier wants to merge 1 commit intomainfrom
fix/leaderboard-hydration
Open

fix(leaderboard): remove nested Link wrapper causing hydration error#17
craftsoldier wants to merge 1 commit intomainfrom
fix/leaderboard-hydration

Conversation

@craftsoldier
Copy link
Copy Markdown
Collaborator

Summary

Fixed hydration validation error on Vercel caused by nested <a> tags in the leaderboard table.

Changes

  • Removed outer <Link> wrapper from leaderboard rows
  • ClickStopLink components inside RowSummary still handle navigation (profile, stats links)
  • Production build now passes TypeScript checks without errors

Why

React doesn't allow <a> tags (from <Link>) to be nested inside other <a> tags. This is invalid HTML and causes hydration mismatches, especially in production builds with strict validation (like Vercel).

The fix maintains the same user experience while using valid HTML structure.

Removed outer <Link> component wrapping leaderboard rows to prevent
nested <a> tags, which caused hydration validation errors on Vercel.
ClickStopLink components inside RowSummary still handle navigation.
@vercel
Copy link
Copy Markdown

vercel bot commented Feb 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
directory Building Building Preview, Comment Feb 27, 2026 0:39am

Request Review

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant