From 55ae98dd1cb7050f09d05ecaa1f5da1f43149b2c Mon Sep 17 00:00:00 2001 From: Matheus Wichman Date: Tue, 5 Oct 2021 19:23:01 -0300 Subject: [PATCH] effect deps --- .../grid/_modules_/grid/components/GridVirtualizedContainer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grid/_modules_/grid/components/GridVirtualizedContainer.tsx b/packages/grid/_modules_/grid/components/GridVirtualizedContainer.tsx index 5c8d7a8e7868e..1e03bc1654ffd 100644 --- a/packages/grid/_modules_/grid/components/GridVirtualizedContainer.tsx +++ b/packages/grid/_modules_/grid/components/GridVirtualizedContainer.tsx @@ -120,7 +120,7 @@ const GridVirtualizedContainer = React.forwardRef(function GridVirtual firstColumnIndex, lastColumnIndex, }; - }, [apiRef, rowHeight]); + }, [apiRef, rootProps.autoHeight, rowHeight, rowsInCurrentPage.length]); React.useEffect(() => { const initialRenderContext = computeRenderContext();