Yuki Takei 3 лет назад
Родитель
Сommit
e49c0b500d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/app/src/components/Layout/RawLayout.tsx

+ 1 - 1
packages/app/src/components/Layout/RawLayout.tsx

@@ -33,7 +33,7 @@ export const RawLayout = ({ children, title, className }: Props): JSX.Element =>
   // set colorScheme in CSR
   useIsomorphicLayoutEffect(() => {
     setColorScheme(resolvedTheme ?? resolvedThemeByAttributes);
-  }, [resolvedTheme]);
+  }, [resolvedTheme, resolvedThemeByAttributes]);
 
   return (
     <>