Skip to content

fix: suppressHydrationWarning on <Html> (silence theme-init #418)#26

Merged
Xaxis merged 1 commit into
mainfrom
fix/hydration-suppress
May 25, 2026
Merged

fix: suppressHydrationWarning on <Html> (silence theme-init #418)#26
Xaxis merged 1 commit into
mainfrom
fix/hydration-suppress

Conversation

@Xaxis
Copy link
Copy Markdown
Contributor

@Xaxis Xaxis commented May 25, 2026

Follow-up to the design-system convergence. The pre-paint theme-init script sets skin+mode on before hydration; suppressHydrationWarning marks that divergence intentional, clearing React #418 on the statically-generated homepage. No functional change.

The pre-paint getOcThemeInitScript() + next-themes set the skin (data-oc-theme)
and mode class on <html> before React hydrates — an intentional client/server
divergence. Silences React #418 on the statically-generated homepage.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 25, 2026

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

Project Deployment Actions Updated (UTC)
oc-docs Ready Ready Preview, Comment May 25, 2026 7:23pm

Request Review

@Xaxis Xaxis merged commit f31b040 into main May 25, 2026
4 checks passed
@Xaxis Xaxis deleted the fix/hydration-suppress branch May 25, 2026 19:25
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