-
Notifications
You must be signed in to change notification settings - Fork 13
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 error while scrolling #112
Comments
Sorry for the slow response here. I haven't had time to dig deeply, but I am quite confident that the Virtualizer's ResizeObserver callback is invoked not only when existing DOM children resize, but also whenever virtualizer adds new physical children. In the latter case, the layout may then explicitly set the size of one of those just-created children, which would theoretically cause the RO to need to fire again within the same animation frame. I think it's in this case that the browser's loop-detection being triggered, but it's not a situation in which a loop will actually occur. Long-term, there may be a way for us to avoid the error, but I don't believe it's indicative of a real behavior or performance problem. Various reading in and around this area: https://stackoverflow.com/questions/49384120/resizeobserver-loop-limit-exceeded |
Leaving the issue open for now, however, until we can take a deeper look. |
Version
0.7.0-pre.2
Description
While migrating to the latest version of the virtualizer, I've noticed that an error with the ResizeObserver happens fairly often.
To reproduce:
Notice how the message
ResizeObserver loop limit exceeded
appears multiple times.While doing the migration this error appears many times in the tests causing them to fail.
The text was updated successfully, but these errors were encountered: