-
-
Notifications
You must be signed in to change notification settings - Fork 376
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
ResizeObserver loop completed with undelivered notifications #1283
Comments
Hi, |
It should no longer be needed, and may be causing infinite resize loops in some situations. See https://discuss.codemirror.net/t/resizeobserver-loop-completed-with-undelivered-notifications/7300 Issue codemirror/dev#1283
I haven't found a way to reproduce this, so I cannot confirm the fix, but I think attached patch, which removes the only resize observer that immediately causes an action, is likely to fix this issue. |
I solved my problem. For me, this problem happened because of installing an extension in Chrome. When I removed the extension, the problem was solved. If you want to reproduce this error, install the Sider.ai extension in chrome and in your React 18 project add Html input Uncaught runtime errors: Thanks for your attention. |
Thanks for getting back on that. I'd say that is misbehavior on the part of the extension, and not something CodeMirror is really responsible for, but regardless, I expect the current version of the library will avoid the problem. |
@marijnh Thank you for your response, was there a recent patch update? |
Yes, @codemirror/view 6.21.4 has this patch. |
@marijnh I'm still investigating, I'll see if I can find some time to reproduce it stackblitz. |
Older versions of npm duplicate packages when you upgrade a single package. Remove your package lock and reinstall all dependencies. And upgrade npm. Or, if you're using yarn, which is broken in a similar way, I'd recommend you dump that and switch to a recent npm. |
@marijnh Thank you for your help with this, We've updated to @codemirror/view v6.21.4 but we're still getting We haven't been able to replicate this error either and I'm not sure if this is the result of a memory leak on our end, |
Describe the issue
We're receiving quite a lot of error's from bugsnag reporting the below error.
ResizeObserver loop completed with undelivered notifications
Our investigations of the impacted pages turned up the only usage of ResizeObserver to be in
@codemirror/view
.We are on the latest version v6.21.3
I'm posting this to see if others have encountered this error,
and if there is a way to catch or silence the error.
Browser and platform
Error reports seem to be just coming from chrome
Reproduction link
No response
The text was updated successfully, but these errors were encountered: