Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

fix effect

AykutSarac6ddf656ba02a
diff --git a/src/containers/Home/index.tsx b/src/containers/Home/index.tsx
index 4531ad1d..a766f7b9 100644
--- a/src/containers/Home/index.tsx
+++ b/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);
}, []);