-
-
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
[data grid] data grids have begun crashing when columns contain flex dimensions #15837
Comments
Duplicate of #15721 |
Hey @michelengelen, In the sand box:
The video attached to the initial issue shows those steps as well. Is there anything else I can provide or am I missing additional context here? |
Hey @Luis-Ramirez21x, did you update the data grid version to a version that incorporated that bugfix? The sandbox runs without problems for me, possibly due to the fact that it uses |
The version you should install is |
Thanks for the quick follow up! Here is the sandbox And here is a screen recording of what I did to replicate the bug. Continued_grid_crashing.mp4 |
Hey @michelengelen, just wanted to follow up on this. Happy new year! |
Hey @Luis-Ramirez21x ... happy new year to you too. Thanks for the reminder. I would have missed that otherwise. Could you share with me which screen resolution you are using (Hardware and Software)? And does this also happen on other resolutions? |
Sorry for the late reply, deployment week has had alot of fires... As requested: Tested this on my laptop screen, desktop screen, office screen the issues continues to happen with the sandbox. |
All right ... thanks for the clarification ... I'll add it to the board for the team to have a look. This might be related to #15850 |
Hi @Luis-Ramirez21x The version is locked to I created 2 demos without lockfiles:
In the demos above, I've set the width to Can you check these demos and confirm that the 2nd demo works on your hardware? Thanks! |
@cherniavskii @michelengelen I can confirm that 2nd demo worked for me! Thank you for the help y'all 🙏! |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @Luis-Ramirez21x How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
The problem in depth
Hey MUI Team,
I recently began using Vite and began to have issues with the data grid.
Grids with flex columns dimensions,
flex:1
, will give me the following error:hook.js:608 Warning: Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render
However, this does not always occur. Grids will crash mainly when first starting the dev server and navigating to the browser with
Disable cache
enabled.In prod the grid seems to only crash randomly.
This is a reproduction :
https://codesandbox.io/p/devbox/inspiring-agnesi-p7nm7g?file=%2Fsrc%2FApp.jsx%3A44%2C10&workspaceId=ws_XkZ7VsXvM11g44Cnteszcu
This is a screen recording showing the error when opened in Chrome.
DataGridCrash.mp4
Am I missing some some parent container requirements? I'd need the grid to take up the full length of the page.
Please let me know if I can provide additional context/clarity. Thank you in advance!
Your environment
`npx @mui/envinfo`
Search keywords: DataGridPro, Vite, Flex
Order ID: 91497
The text was updated successfully, but these errors were encountered: