[data grid] autosizeOnMount renders twice causing autosize blink #15044
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
Steps to reproduce
Link to live example: (required)
https://stackblitz.com/edit/react-jisqwk?file=Demo.tsx
Steps:
Just open the link
Repro
Current behavior
You can see an initial render where the columns are not sized correctly, and very quickly it re-renders with the columns sizes calculated correctly.
Expected behavior
The initial render that already shows all data should ideally be auto sized already.
Context
No response
Your environment
(My current env uses MUI-X DataGrid v6, but I also tried v7 and the issue also occurs there)
npx @mui/envinfo
Search keywords: datagrid data grid autosizeOnMount Autosizing
The text was updated successfully, but these errors were encountered: