-
Notifications
You must be signed in to change notification settings - Fork 619
Fix theming class hydration warning on html element #5233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix theming class hydration warning on html element #5233
Conversation
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @MananTank and the rest of your teammates on |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5233 +/- ##
=======================================
Coverage 45.29% 45.29%
=======================================
Files 1068 1068
Lines 55380 55380
Branches 3975 3975
=======================================
Hits 25082 25082
Misses 29606 29606
Partials 692 692
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|
Merge activity
|
This is the correct way to fix this https://github.com/pacocoursey/next-themes?tab=readme-ov-file#with-app ` suppressHydrationWarning` property only applies one level deep, so it won't block hydration warnings on other child elements of `<html>`
2a817eb to
3658b3f
Compare

This is the correct way to fix this
https://github.com/pacocoursey/next-themes?tab=readme-ov-file#with-app
suppressHydrationWarningproperty only applies one level deep, so it won't block hydration warnings on other child elements of<html>PR-Codex overview
This PR focuses on adding the
suppressHydrationWarningattribute to the<html>tag in multiple layout files to prevent hydration warnings in React applications.Detailed summary
suppressHydrationWarningto<html lang="en">in:apps/portal/src/app/layout.tsxapps/dashboard/src/app/layout.tsxapps/playground-web/src/app/layout.tsxapps/wallet-ui/src/app/layout.tsxapps/dashboard/src/app/global-error.tsx