Skip to content

fix(frontend): add suppressHydrationWarning to html tag#56

Merged
charlie83Gs merged 2 commits intomainfrom
worktree-fix+hydration-mismatch
Mar 29, 2026
Merged

fix(frontend): add suppressHydrationWarning to html tag#56
charlie83Gs merged 2 commits intomainfrom
worktree-fix+hydration-mismatch

Conversation

@charlie83Gs
Copy link
Copy Markdown
Contributor

Summary

  • Add suppressHydrationWarning to <html> tag in root layout to fix hydration mismatch caused by next-themes injecting className="dark" and style="color-scheme: dark" before React hydrates

Test plan

  • pnpm lint passes
  • pnpm type-check passes
  • pnpm test passes (123 tests)
  • Verify hydration warning no longer appears in browser console

🤖 Generated with Claude Code

charlie83Gs and others added 2 commits March 29, 2026 14:32
next-themes injects className and style attributes on the <html> element
before React hydrates, causing a hydration mismatch warning.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@charlie83Gs charlie83Gs merged commit 2eec0fd into main Mar 29, 2026
4 checks passed
@charlie83Gs charlie83Gs deleted the worktree-fix+hydration-mismatch branch March 29, 2026 20:36
charlie83Gs added a commit that referenced this pull request Apr 20, 2026
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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