From f8468bdaf5eceee4667f515001881cbb566b8d48 Mon Sep 17 00:00:00 2001 From: Rom Grk Date: Tue, 15 Oct 2024 23:00:44 -0400 Subject: [PATCH] lint --- .../x-data-grid/src/hooks/features/rows/useGridRowsMeta.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/x-data-grid/src/hooks/features/rows/useGridRowsMeta.ts b/packages/x-data-grid/src/hooks/features/rows/useGridRowsMeta.ts index 2ff08d08042a..501b8690a710 100644 --- a/packages/x-data-grid/src/hooks/features/rows/useGridRowsMeta.ts +++ b/packages/x-data-grid/src/hooks/features/rows/useGridRowsMeta.ts @@ -5,6 +5,7 @@ import { GridPrivateApiCommunity } from '../../../models/api/gridApiCommunity'; import { GridRowsMetaApi, GridRowsMetaPrivateApi } from '../../../models/api/gridRowsMetaApi'; import { DataGridProcessedProps } from '../../../models/props/DataGridProps'; import { useGridVisibleRows } from '../../utils/useGridVisibleRows'; +import { eslintUseValue } from '../../../utils/utils'; import { useGridApiMethod } from '../../utils/useGridApiMethod'; import { GridRowEntry } from '../../../models/gridRows'; import { useGridSelector } from '../../utils/useGridSelector'; @@ -91,6 +92,8 @@ export const useGridRowsMeta = ( // HACK: rowHeight trails behind the most up-to-date value just enough to // mess the initial rowsMeta hydration :/ const baseRowHeight = gridDimensionsSelector(apiRef.current.state).rowHeight; + eslintUseValue(rowHeight); + const entry = apiRef.current.getRowHeightEntry(row.id); if (!getRowHeightProp) {