-
-
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] Grouping Col Def with a flex and pinned columns causes "Maximum update depth exceeded" #12851
Comments
Thanks for setting it up @cstephens-cni. I see the same error in my test environment, even when stripped down to a flat (non-grouping) table, 1 column, 1 row. (I'm not able to fork your example to create the absolute simplest example, but hopefully my description should suffice.) As a side note, this is gating our adoption of |
Hey @cstephens-cni and @beaktor ... I can confirm this bug. |
I can't reproduce with the codesandbox link above, page loads without error. Are you still observing the issue? If so, can you give more details? |
@romgrk I just clicked on the very first link above (live example) into an incognito window, and see the error: Arguably, it's not the simplest repro scenario, with unnecessary multiple columns and column grouping. If you think it would help for an even simpler repro, I can try afresh. I was able to see column size problems with just the combination of 1) pinned column, and 2) |
Maybe it's a macOS issue, @MBilalShafi or @cherniavskii would one of you be able to reproduce? If so, could you take the issue? |
@romgrk I think the other key that can trigger it, is resizing the window in that configuration. Would you mind trying that? Thank you! |
@romgrk Any update if you were able to reproduce this, if you resized the window? If not, I'll try and create another sandbox from scratch to see if it's simpler. |
The issue has been inactive for 7 days and has been automatically closed. |
I can reproduce when resizing it up past a certain threshold. I'll add it to my task list. |
I've been trying to reproduce further and I haven't been able to reproduce it locally (outside codesandbox) and even in codesandbox, I very rarely hit the issue. Do you have any more details that could help me reproduce it? Can you consistently trigger it? I also see that the CSB is at 7.3.0, please try with the latest version. |
Thanks for following up, @romgrk. I'm afk until next Monday, when I can try to see if I can strip down my setup to offer the simplest repro scenario. It happens almost 100% of the time in our app, dev tools open. Not sure the reason in discrepancy between what we're seeing, perhaps dynamic sizing with flexbox around the grid — but I'll revisit this next week and share more details. |
I cannot reproduce the issue with Data Grid 7.3.1 and above. I believe it was fixed by #12849 7.3.0: https://codesandbox.io/p/sandbox/black-silence-3p8p5z |
Fixed by #12849 |
@cstephens-cni: 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. |
Sorry I haven't been super involved in this. We have like 40 tasks going on and I only had a few days to try to upgrade. I'll swing back to this soon and see if it is resolved. Thanks all for the support. |
This looks to be good now |
Steps to reproduce
Link to live example: (required)
https://codesandbox.io/p/sandbox/ecstatic-sid-4xygr9?file=%2Fsrc%2FDemo.tsx%3A47%2C1
Steps:
#12584 (comment) reported a similar issue. With different pinned columns
Current behavior
Error thrown
Expected behavior
grid to load and pinned grouped column to use flex
Context
Pinning a grouped column that can flex so we can use it as the defining col of that row.
Your environment
npx @mui/envinfo
Chrome
Search keywords: grouping flex pinned Maximum update depth exceeded
Order ID: 70572
The text was updated successfully, but these errors were encountered: