From 78aa3ddb4c553339dd4242d89b70eac52e89d8c1 Mon Sep 17 00:00:00 2001 From: Petyo Ivanov Date: Sat, 7 Sep 2024 09:37:46 +0100 Subject: [PATCH] fix: grid hooks Fixes #1131 --- src/VirtuosoGrid.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/VirtuosoGrid.tsx b/src/VirtuosoGrid.tsx index ab520339d..639b31854 100644 --- a/src/VirtuosoGrid.tsx +++ b/src/VirtuosoGrid.tsx @@ -101,16 +101,16 @@ const GridItems: React.FC = /*#__PURE__*/ React.memo(function GridItems() { false ) - if (stateRestoreInProgress) { - return null - } - useIsomorphicLayoutEffect(() => { if (gridState.itemHeight > 0 && gridState.itemWidth > 0) { reportReadyState(true) } }, [gridState]) + if (stateRestoreInProgress) { + return null + } + return (