fix: lazy rendering checks (#2130)

This commit is contained in:
boojack
2023-08-13 23:19:29 +08:00
committed by GitHub
parent e266d88edd
commit 9f8a0a8dd3

View File

@ -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.