-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DataGrid] Remove rowHeight
and headerHeight
from state
#7199
[DataGrid] Remove rowHeight
and headerHeight
from state
#7199
Conversation
These are the results for the performance tests:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages/grid/x-data-grid/src/hooks/features/columnHeaders/useGridColumnHeaders.tsx
Outdated
Show resolved
Hide resolved
packages/grid/x-data-grid/src/hooks/features/columnHeaders/useGridColumnHeaders.tsx
Show resolved
Hide resolved
packages/grid/x-data-grid-premium/src/components/GridAggregationHeader.tsx
Show resolved
Hide resolved
packages/grid/x-data-grid/src/hooks/features/density/useGridDensity.tsx
Outdated
Show resolved
Hide resolved
packages/grid/x-data-grid/src/hooks/features/dimensions/useGridDimensions.ts
Outdated
Show resolved
Hide resolved
apiRef: React.MutableRefObject<GridApiCommunity>, | ||
rowHeight: number, | ||
) { | ||
const densityFactor = gridDensityFactorSelector(apiRef); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider passing densityFactor
instead of apiRef
?
Same as #7199 (comment)
packages/grid/x-data-grid/src/hooks/features/rows/useGridRowsMeta.ts
Outdated
Show resolved
Hide resolved
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
…nsity.tsx Co-authored-by: Andrew Cherniavskii <[email protected]> Signed-off-by: Danail Hadjiatanasov <[email protected]>
…nsity.tsx Co-authored-by: Andrew Cherniavskii <[email protected]> Signed-off-by: Danail Hadjiatanasov <[email protected]>
docs/data/migration/migration-data-grid-v5/migration-data-grid-v5.md
Outdated
Show resolved
Hide resolved
…-v5.md Co-authored-by: Andrew Cherniavskii <[email protected]> Signed-off-by: Danail Hadjiatanasov <[email protected]>
Fixes #5620