Skip to content
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

Closed
LookRain opened this issue Jul 9, 2024 · 2 comments
Closed

ResizeObserver loop completed with undelivered notifications #470

LookRain opened this issue Jul 9, 2024 · 2 comments

Comments

@LookRain
Copy link

LookRain commented Jul 9, 2024

Describe the bug
ResizeObserver loop completed with undelivered notifications errors thrown on list scroll, especially for items with unspecified height
image
image

This happens both in Safari and Chrome

Safari: the errors are console.errored and clearly visible on the stories https://inokawa.github.io/virtua/?path=/story/basics-vlist--default

Chrome: it seems the errors are not printed by default, so you need to catch it on window

window.addEventListener('error', (event) => {
  console.error('captured error', event);
});

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)
image

To Reproduce

  1. just go to the stories and scroll on the React default example in Safari
  2. https://github.com/LookRain/demo-resize-observer-error, which just copies the code of the default story and adds a error capture to make the errors visible in Chrome

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:

  • OS: MacOS,
  • Browser: Chrom, Safari
  • Version of this package: latest
  • Version of framework: react

Additional context
Add any other context about the problem here.

@inokawa
Copy link
Owner

inokawa commented Jul 9, 2024

https://github.com/inokawa/virtua?tab=readme-ov-file#what-is-resizeobserver-loop-completed-with-undelivered-notifications-error

Of course, it would be better if the error did not occur, but it's probably inevitable with current design.

@inokawa inokawa closed this as completed Jul 9, 2024
@inokawa inokawa reopened this Jul 9, 2024
@inokawa inokawa closed this as not planned Won't fix, can't repro, duplicate, stale Jul 9, 2024
@LookRain
Copy link
Author

LookRain commented Jul 9, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants