Closed wilomgfx closed 5 months ago
Can you create a minimal sample repo with your setup?
This brings nothing new to the conversation, and #1039 already exists.
Can you create a minimal sample repo with your setup?
Here you go https://github.com/wilomgfx/react-virtuoso-resizeobserver-bug-report
Thank you for the reproduction.
I believe that this StackOverflow thread covers the possible workarounds, including the one you have mentioned (which, I believe, needs an ejection, which might not be very pleasant I guess).
Describe the bug When rendering a
Virtuoso
component, the following error is thrown in our dev env (webpack dev server 5.0.3). This only happens in version 4.7.1 and 4.7.0, the issue is not present in version 4.6.3Reproduction FYI, I can't reproduce the issue on codesandbox, but it is the minimal amount of code I can put anywhere in our codebase to reproduce the issue.
https://codesandbox.io/p/sandbox/react-virtuoso-bug-resizeobserver-loop-error-rmdfvn?file=%2Fsrc%2FApp.js%3A10%2C15
To Reproduce
MyReactVirtuosoBug
componentExpected behavior No error is thrown
Screenshots![image](https://github.com/petyosi/react-virtuoso/assets/6611491/8b4d824f-ba57-47bc-8eac-04de3bf8f0da)
Desktop (please complete the following information):
Additional context From what I could find online, it's not an actual error, but more of a warning? https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver#observation_errors I have ignored it in our webpack config
overlay
property of theclient
portion of the dev server configuration.