Issue with createGenerateClassName #41691
Labels
package: system
Specific to @mui/system
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Steps to reproduce
I am using "@material-ui/core" version "4.10.2"
Link to live example: (required)
Steps:
Using Webpack Module Federation, create a Microfrontend with One Host and 2 Child apps
Add import as below
import {StylesProvider,createGenerateClassName} from "@material-ui/core/styles";
Add createGenerateClassName definition as below;
<StylesProvider injectFirst generateClassName={generateClassName}>
Current behavior
In the rendered DOM, I can see 'my-host-seed'. But I cannot see any generated class names for the child apps i.e. I cannot see either 'my-child-seed-1' OR 'my-child-seed-2'
Expected behavior
In the rendered DOM, I should be able to see 'my-host-seed' and also the generated class names for the child apps i.e. I should also see 'my-child-seed-1' AND 'my-child-seed-2'
Context
I am trying to resolve CSS conflict issues in my Microfrontend app using StylesProvider
Your environment
npx @mui/envinfo
Chrome
Search keywords: StylesProvider
The text was updated successfully, but these errors were encountered: