MUI styles not getting showed properly on the initial load

Viewed 23

I am using MUI for one of my projects and I have started to face these issues. On the initial load of my app on production, the mui styles doesn't seems to get applied. For examples:

  1. Switch component is not shown properly
  2. Button component loads with no padding/margin even though i have used sx props. Though they work when i use style instead of sx.
  3. Context menu also loads with improper styling. All the styles get fixed when I refresh the page. How context menu renders on the first load

How can I resolve this?

0 Answers
Related