-
-
Notifications
You must be signed in to change notification settings - Fork 303
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 limit exceeded
#531
Comments
I experience the same problem, using the |
I would recommended just to ignore this error, fixing it will not change anything, saying from experience as living with this in production few years now. |
In our project, we can completely ignore this error in Sentry only because of this module, but then we will lose information about other errors of this kind in other parts of the site. I am aware that this error does not affect anything, but it still exists. The module has 1M monthly downloads, and someone will also encounter this and it seems logical to fix it so that there are no unnecessary issues 🤷♂️ |
Hard to say how are you handling errors internally, but just ignore errors having message, not all errors const knownErrors = [
'ResizeObserver loop completed with undelivered notifications.',
'ResizeObserver loop limit exceeded'
]
Yeah, totally agree to fix it, but from my understanding we can't really. Patching it with requestAnimationFrame will not solve the underling issue. |
Is this error logged only in non-production builds? |
same error for me, is it can be fixed in future? |
This error can be safely ignored. I wish there was a better answer. |
it's causing the scroll to go way up |
Describe the bug
We use the module on a fairly large site and embed a virtual scroll in one of the parts of the site using ReactDOM. When navigating between pages, we do not cause unmount between pages - because this process is difficult to follow on a large-level project that uses many technologies and react is not the main one.
Because of this, users often encounter an error:
ResizeObserver
loop limit exceededLooking for more information, I came across a hack that avoids this error, you need to wrap the ResizeObserver callback in an animationRequestFrame:
https://stackoverflow.com/questions/49384120/resizeobserver-loop-limit-exceeded/58701523#58701523
PolymerLabs/uni-virtualizer#112
nolimits4web/swiper#5441
How often does this bug happen?
Often
Screenshots or Videos
No response
Platform
tanstack-virtual version
3.0.0-beta.54
TypeScript version
4.9.5
Additional context
No response
Terms & Code of Conduct
The text was updated successfully, but these errors were encountered: