1
1
Fork 0
mirror of https://github.com/usememos/memos.git synced 2025-02-26 14:25:24 +08:00

fix: lazy rendering checks ()

This commit is contained in:
boojack 2023-08-13 23:19:29 +08:00 committed by GitHub
parent e266d88edd
commit 9f8a0a8dd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,7 +101,7 @@ const Memo: React.FC<Props> = (props: Props) => {
}
root.addEventListener("scroll", checkShouldRender);
}
}, [lazyRendering]);
}, [lazyRendering, filterStore.state]);
if (!shouldRender) {
// Render a placeholder to occupy the space.