petyosi / react-virtuoso

The most powerful virtual list component for React
https://virtuoso.dev
MIT License
5.16k stars 299 forks source link

using ReactDom.render occurs 'ResizeObserver loop completed with undelivered notifications.' #1005

Closed rmstsd closed 10 months ago

rmstsd commented 10 months ago

I don't provide free support through Github issues. If you want to ask for support or request features, sponsor the project and contact me over email. If you choose to ignore the above, I am likely going to delete the issue.

Describe the bug console occurs 'ResizeObserver loop completed with undelivered notifications.'

Reproduction https://codesandbox.io/s/cocky-robinson-85fmj8?file=/src/App.js

To Reproduce Steps to reproduce the behavior:

  1. Refresh the page to repeat
  2. You can also scroll down and replay it
  3. Look at the console to see the error message

Expected behavior No errors should be reported

Screenshots image

Desktop (please complete the following information):

Additional context After my testing, I found that this problem occurs when using ReactDom.render in react-dom, but not when using createRoot in react-dom/client, which feels strange. I hope I can help you.

petyosi commented 10 months ago

https://github.com/petyosi/react-virtuoso/issues?q=is:issue+ResizeObserver