-
-
Notifications
You must be signed in to change notification settings - Fork 61
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 #470
Comments
Of course, it would be better if the error did not occur, but it's probably inevitable with current design. |
@inokawa sorry man i only searched thru the error in the issues, but forgot to do it in the freakin readme lol, apologies for the spam |
Reopen to try to fix. |
Probably it is caused by recursive rerendering with flushSync triggered by items resize, like: items are measured -> rerender & range change -> new items are mounted -> items are measured -> rerender & range change -> ... -> error! Some rough ideas to reduce errors:
|
Describe the bug


ResizeObserver loop completed with undelivered notifications
errors thrown on list scroll, especially for items with unspecified heightThis happens both in Safari and Chrome
Safari: the errors are
console.error
ed and clearly visible on the stories https://inokawa.github.io/virtua/?path=/story/basics-vlist--defaultChrome: it seems the errors are not printed by default, so you need to catch it on
window
Or if you have extensions installed that captures uncaught errors, they might be printed as well (for example Metamask captures them but does not print the error details)

To Reproduce
Expected behavior
Probably should not throw all these errors? I'm not sure if it's a browser bug cause I see similar issues with react-virtuoso as well
Platform:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: