-
-
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] Error: Uncaught ResizeObserver loop completed with undelivered notifications => when opening a new window (about:blank) #16277
Comments
Interesting use case. You should unmount the component when closing the window (unrelated to data grid): You can also delay rendering to avoid the remaining errors, as a new popup has no dimensions initially. But that's not really an issue. |
Sorry I got the wrong version of React in the codesanbox, with react version 18 the error still appears. My temporary solution is to go back to version ‘@mui/x-data-grid-premium’: ‘7.22.3’, and update the create window hook. As for delaying the rendering, it could also be a valid solution, but it seemed to work in the previous version of the library, so I guess it is a bug with the new react 19 changes. |
Whats interesting and weird: If you add a second function call to the unmount it does work. Noticed because I wanted to log something to the console, so that alone is enough to make the error disappear. Not sure why that is though. This couldn't be because the log is pushed onto the stack, no? |
Which error? Can you provide a reproduction? |
Update draft with react and react dom version 18. Click in open window |
I cannot seem to reproduce the infinite loop error. I only see a |
I could reproduce it with React 18, so the issue is indeed present, but as stated it goes away with a second function being called before the I guess wrapping in a |
The above PR should fix it. The problem might be particular to dev mode though, as it happens intermittently, but still. You still need to call unmount though, as otherwise you're continuing to render the component even after the popup window closes, as the rendering is handled by the parent window – stripped down example / reproduction without any data grid: |
Perfect, thanks |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @danciudev 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. |
Steps to reproduce
Hi guys, I am a user of MUI Data Grid Premium, I detected the following error:
Steps:
Current behavior
Infinite loop showing error message ‘Uncaught ResizeObserver loop completed with undelivered notifications’.
Expected behavior
No error.
Context
No response
Your environment
npx @mui/envinfo
Search keywords: ResizeObserver, about:blank, new window
The text was updated successfully, but these errors were encountered: