We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e23e30f + a08c8f0 commit 36bdd6bCopy full SHA for 36bdd6b
packages/ra-ui-materialui/src/layout/Layout.tsx
@@ -229,7 +229,7 @@ const Layout = ({
229
...props
230
}: LayoutProps): JSX.Element => {
231
const themeProp = useRef(themeOverride);
232
- const [theme, setTheme] = useState(createMuiTheme(themeOverride));
+ const [theme, setTheme] = useState(() => createMuiTheme(themeOverride));
233
234
useEffect(() => {
235
if (themeProp.current !== themeOverride) {
0 commit comments