This commit is contained in:
Yidadaa 2023-05-02 02:45:15 +08:00
parent f5a5cffdec
commit ae8050a3f7
1 changed files with 9 additions and 0 deletions

View File

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