From f5a5cffdec2753d57f3c0e687b290654565e712d Mon Sep 17 00:00:00 2001 From: Yidadaa Date: Tue, 2 May 2023 02:38:30 +0800 Subject: [PATCH] fixup --- app/components/markdown.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/components/markdown.tsx b/app/components/markdown.tsx index 11fc249d..69bc3517 100644 --- a/app/components/markdown.tsx +++ b/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 (