Yidadaa преди 1 година
родител
ревизия
f5a5cffdec
променени са 1 файла, в които са добавени 0 реда и са изтрити 9 реда
  1. 0 9
      app/components/markdown.tsx

+ 0 - 9
app/components/markdown.tsx

@@ -90,15 +90,6 @@ export function Markdown(
     }
   };
 
-  useEffect(() => {
-    setTimeout(() => {
-      if (!inView.current) {
-        checkInView();
-      }
-    }, 10);
-    // eslint-disable-next-line react-hooks/exhaustive-deps
-  }, []);
-
   checkInView();
 
   return (