mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: lazy rendering checks (#2130)
This commit is contained in:
@ -101,7 +101,7 @@ const Memo: React.FC<Props> = (props: Props) => {
|
|||||||
}
|
}
|
||||||
root.addEventListener("scroll", checkShouldRender);
|
root.addEventListener("scroll", checkShouldRender);
|
||||||
}
|
}
|
||||||
}, [lazyRendering]);
|
}, [lazyRendering, filterStore.state]);
|
||||||
|
|
||||||
if (!shouldRender) {
|
if (!shouldRender) {
|
||||||
// Render a placeholder to occupy the space.
|
// Render a placeholder to occupy the space.
|
||||||
|
Reference in New Issue
Block a user