diff --git a/src/web/src/pages/_app.tsx b/src/web/src/pages/_app.tsx index 71965b064c..9e1888fca3 100644 --- a/src/web/src/pages/_app.tsx +++ b/src/web/src/pages/_app.tsx @@ -27,7 +27,7 @@ const App = ({ Component, pageProps }: AppProps) => { if (jssStyles) { jssStyles.parentElement?.removeChild(jssStyles); } - }); + }, []); // Switch the active theme, and also store it for next load const toggleTheme = () => {