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

Use createResizeObserver for ResizeObserver creation everywhere #8523

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

hrb-hub
Copy link
Contributor

@hrb-hub hrb-hub commented Feb 12, 2025

createResizeObserver returns a ResizeObserver that handles resize events in a requestAnimationFrame.
This is done to prevent ResizeObserver loop completed with undelivered notifications errors, which can happen when excessively resizing an observed element, resulting in resize events being deferred to the next render cycle.

Close #8517

createResizeObserver returns a ResizeObserver that handles resize events
in a `requestAnimationFrame`.
This is done to prevent `ResizeObserver loop completed with undelivered
notifications` errors, which can happen when excessively resizing an
observed element, resulting in resize events being deferred to the next
render cycle.

Close #8517
@hrb-hub hrb-hub linked an issue Feb 12, 2025 that may be closed by this pull request
3 tasks
Copy link
Contributor

@charlag charlag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, good to generalize this!

@hrb-hub hrb-hub merged commit 0bcd163 into dev-mail Feb 13, 2025
6 checks passed
@hrb-hub hrb-hub deleted the 8517-resize-observer-errors branch February 13, 2025 13:38
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

Successfully merging this pull request may close these issues.

ResizeObserver loop completed with undelivered notifications. Still occurs
2 participants