소스 검색

fix effect

AykutSarac 3 년 전
부모
커밋
6ddf656ba0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/containers/Home/index.tsx

+ 1 - 1
src/containers/Home/index.tsx

@@ -19,7 +19,7 @@ const Home: React.FC = () => {
   const { push } = useRouter();
   const [isMobile, setIsMobile] = React.useState(false);
 
-  React.useLayoutEffect(() => {
+  React.useEffect(() => {
     setIsMobile(window.screen.width <= 768);
   }, []);