Skip to content

bug: Hydration warning / client-side state mismatch risk from suppressHydrationWarning on interactive elements #3603

@Aditya8369

Description

@Aditya8369

Description

Multiple elements use suppressHydrationWarning even though they rely on client-only state like mounted, username, and trimmedUsername. This can mask real hydration mismatches and lead to UI being rendered in an unexpected state after hydration.

Steps to Reproduce

  1. Load the landing page.
  2. Immediately type in the username input or click “Generate Badge” before the page finishes hydrating (slow 3G / throttling helps).
  3. Observe whether buttons/validation messages briefly show incorrect states.

Expected Behavior

No UI inconsistencies after hydration:
“Generate Badge” disabled/enabled correctly
validation message corresponds to the actual input
badge preview area updates correctly

Screenshots / Logs

No response

GitHub Username (If applicable)

No response

Environment

Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions