Skip to content

Commit 908d850

Browse files
committed
fix: ensure theme changes apply instantly without refresh
1 parent ee3c03b commit 908d850

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/demo/src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ const App = () => {
4646
const singleTheme = themes.find(theme => theme.name === themeName)?.single;
4747
const lightTheme = themes.find(theme => theme.name === themeName)?.light;
4848
const darkTheme = themes.find(theme => theme.name === themeName)?.dark;
49+
4950
return (
5051
<Admin
52+
key={themeName}
5153
title="Posters Galore Admin"
5254
dataProvider={dataProviderFactory(
5355
process.env.REACT_APP_DATA_PROVIDER || ''

0 commit comments

Comments
 (0)