-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
New noSsr
prop of ThemeProvider throws warning
#44576
Comments
noSsr
prop of ThemeProvider not workingnoSsr
prop of ThemeProvider throws warning
Based on the docs, <ThemeProvider theme={createTheme({ colorSchemes: { dark: true }})} noSsr>
<Button variant="text">Text {console.log('render')}</Button>
</ThemeProvider> There is no error with the above code. |
May be a warning about using |
@siriwatknp where's the warning coming from? I would expect proptypes to accept this:
|
I think the warning is correct. The internal What do you think? |
Steps to reproduce
Steps:
Current behavior
Console warning:
Expected behavior
No console warning.
Context
Release of v6.1.9 adds new
noSsr
prop for ThemeProvider: https://github.com/mui/material-ui/releases/tag/v6.1.9#44451
Your environment
npx @mui/envinfo
Google Chrome Version 131.0.6778.86 (Offizieller Build) (arm64)
Search keywords: ThemeProvider noSsr
The text was updated successfully, but these errors were encountered: