-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
rendertostaticmarkup not working with muitheme #4143
Comments
Turns out there was another similar problem that was unresolved, but only this had been fixed, fixing both resolved it. |
Did you solved this problem now?I have the same problem, I don't know how to deal with it |
Yes, i had not provided the theme to all instances where i had been calling the function, leading me to mistakenly fault the function, it works, so just use it as usual:
|
this snipped that iv been using ReactDOM.renderToStaticMarkup now throws an error
this is the error on muitheme:
Iv recently moved form 14.X to the newest tag, and the rest of the app works after adjusting the necessary import paths as well as adding a default muitheme, how would we go about using muiTheme with the renderToStaticMarkup? is there something else here we need to add? as my code looks like its providing the
neccessary context.
i tried to change it to this and it did not work either (providing muiTheme to the button directly):
The text was updated successfully, but these errors were encountered: