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 (