I have a simple ReactJS app based on hooks (no classes) using StrictMode.
I am using React version 16.13.1 and Material-UI version 4.9.10.
In the Appbar I a
According to Material-ui changelog, it should be solve in V5, which is still in alpha.
It seems that at least in some cases this issue cause by createMuiTheme. You can solve this issue by using the experimental (unstable) theme creator
If you want to get the experimental theme creator instead of removing React.StrictMode, you can change it's import from:
import { createMuiTheme } from '@material-ui/core';
To
import { unstable_createMuiStrictModeTheme as createMuiTheme } from '@material-ui/core';