ResizeObserver - loop limit exceeded
See original GitHub issueBug Report
Describe the Bug
Since Chrome 64, the ResizeObserver is firing a silent error that might be captured and raised when adding an event listener to the window (like some UI error handlers do).
In index.ts, this can be fixed as follows:
// eslint-disable-next-line compat/compat
observerRef.current = new (polyfill || window.ResizeObserver)(
([entry]: any) => {
window.requestAnimationFrame(() => { /* < New line */
How to Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Use Chrome 64 / Safari 14 or newer
window.addEventListener('error', function(e) { console.log(e); });
to log the error
Screenshot
Expected Behavior
No errors from ResizeObserver should be forwarded to the event listeners.
Your Environment
- Device: [MacBook Pro]
- OS: [macOS 11.4]
- Browser: [Chrome, Safari]
- Version: [91.0.4472.77, 14.1.1]
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
ResizeObserver - loop limit exceeded - Stack Overflow
This error means that ResizeObserver was not able to deliver all observations within a single animation frame. It is benign (your site will...
Read more >Error: ResizeObserver loop limit exceeded · Issue #5440
Resizing window triggers Error: ResizeObserver loop limit exceeded . The error is not logged in browser's console, but Sentry captures it.
Read more >Uncaught exception: ResizeObserver loop limit exceeded
This is a legitimate problem, and the runtime error is in the console code. Regardless of what's in the CSV, the console should...
Read more >ResizeObserver loop limit exceeded - Perspective - Ignition
I'm having a performance issue with perspective. The problem happens in a table component. I have two Arrays Object with 36 keys:values each ......
Read more >Every time when I edit something in Tableau online, it ...
Every time when I edit something in Tableau online, it occurres an unexpected error. "ResizeObserver loop limit exceeded." Anyone knows how to ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@wellyshen I’m glad I could help. Hopefully, the problem will be fixed with that in every case. The PR is here.
@cornelius-behrend Thank you mate, it really helpful 💯