react-grid-layout / react-resizable

A simple React component that is resizable with a handle.
https://strml.github.io/react-resizable/examples/1.html
MIT License
2.42k stars 365 forks source link

ResizeObserver loop completed with undelivered notifications #232

Open nicholeuf opened 10 months ago

nicholeuf commented 10 months ago

Thanks for opening an issue!

Please select the type of issue you're reporting. For questions.

Problem Report

There is a known issue with ResizeObservable and workaround using timers described in depth here https://github.com/juggle/resize-observer/issues/103.

Other libraries have similar issues:

System Info

Node Version: v20.10.0 Browser: Chrome 119.0.6045.123 OS: Mac 12.6.5

Frameworks/Libraries used

react: 18.2.0 react-resizeable: 3.0.4

Reproduction

Please see description.

If this is a bug report, please provide a reproduction of the issue by going to https://codesandbox.io/s/9229wz40yo?fontsize=14. Paste a link here to your working reproduction.

gabrieljablonski commented 10 months ago

Care should be taken when implementing the setTimeout() workaround, since it may hide actual problems with the code using ResizeObserver.