-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
[docs] Add documentation for preventing SSR flicker/FOUC with the Next.js app router #42737
Comments
Hello @MikeLautensack, your issue seems to be related to |
@MikeLautensack In the |
Great news! I was on the v5 docs. I appreciate the help! |
I seem to be encountering an issue where the InitColorSchemeScript comp and the extend theme api are failing to build on vercel while building successfully on my local machine. |
Related page
https://mui.com/material-ui/experimental-api/css-theme-variables/usage/
Kind of issue
Missing information
Issue description
The current setup detailed in the docs for Next.js integration
https://mui.com/material-ui/integrations/nextjs/
with and without CSS theme variables, fails to fix the SSR flicker/FOUC. The docs seem to suggest CSS theme variables are the solution to the SSR flicker/FOUC in the app router based off of the link above however when you navigate tohttps://mui.com/material-ui/experimental-api/css-theme-variables/usage/
there is a pages router example and I you cannot use the "getInitColorSchemeScript" in the app router.Context
No response
Search keywords: SSR flicker/FOUC
Search keywords:
The text was updated successfully, but these errors were encountered: