html-next / vertical-collection

Infinite Scroll and Occlusion at > 60FPS
https://html-next.github.io/vertical-collection/
MIT License
176 stars 76 forks source link

ResizeObserver loop limit exceeded #319

Open godserahul1986 opened 4 years ago

godserahul1986 commented 4 years ago

We are using this package to display notifications for our app. We are setting the notifications container scrollTop to 0 inside of requestAnimationFrame to show any new unseen notifications.

Recently our JS error logging framework started throwing this error ResizeObserver loop limit exceeded and our assumption based on some research is its because of this dynamic updating of the notifications container element.

Just wanted to check on if this issue has been seen by anyone. Its not breaking the page but creating a lot of noise on our JS error logging framework.

References for research: https://github.com/WICG/ResizeObserver/issues/38 https://developers.google.com/web/updates/2016/10/resizeobserver

steveszc commented 4 years ago

FWIW we've also seen this error show up in our error logger.