-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
Description
Describe the bug
This doesn't seem to be impacting functional behavior, but is generating error noise. A "ResizeObserver loop limit exceeded" is fired on the window when resizing the window.
To Reproduce
Using this code base and google chrome > 64:
- Add
window.addEventListener('error', (e) => {
// eslint-disable-next-line no-console
console.log(e)
})
on
- Run
npm start
- Maximize the browser window and then resize it to be smaller on the common features example
- Looking at the dev tools,
ResizeObserver loop limit exceeded
is logged repeatedly
Expected behavior
No window errors are generated
Environment
react-data-grid
version: latestreact
/react-dom
version:^17.0.2
Additional context
There's a good write up of this issue here and more discussion here
The most common approach to preventing this error from being fired seems to be to use requestAnimationFrame
shusson, damnitrahul, samanthahamill and ofirelias