You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently using the Toolpad library in a Next.js project (reproduction repository: nextjs-toolpad-demo). However, I am encountering a hydration mismatch error in the browser console. The error message is as follows:
<AppRouterCacheProvideroptions={{enableCssLayer: true,key: "css",prepend: true}}>
// Your Content Here
</AppRouterCacheProvider>
Thanks for sharing your solution. Unfortunately, it didn't work for me. I tried implementing the with the same options you mentioned, but it still didn't resolve the issue. If you have any other suggestions, please let me know. thx.
Try adding data-toolpad-color-scheme="light" to the html tag at the root of the layout.tsx file to prevent this from happening. The error went away for me when doing it in the layout.tsx file in your reproduction repo.
Steps to reproduce
https://github.com/lblblong/nextjs-toolpad-demo
Current behavior
I am currently using the Toolpad library in a Next.js project (reproduction repository: nextjs-toolpad-demo). However, I am encountering a hydration mismatch error in the browser console. The error message is as follows:
Expected behavior
No response
Context
No response
Your environment
npx @mui/envinfo
Search keywords: Hydration mismatch next.js
The text was updated successfully, but these errors were encountered: