BULSU-Planning-and-Development / Pmes

MIT License
0 stars 0 forks source link

ResizeObserver loop completed with undelivered notifications #46

Open davesalvador opened 1 hour ago

davesalvador commented 1 hour ago

Description: We are encountering the following error during runtime:

ResizeObserver loop completed with undelivered notifications. The error occurs consistently when rendering the login page and persists even after attempts to suppress the error through a global error handler. The error does not seem to affect the functionality but disrupts the user experience due to the warning appearing in the console.

Steps to Reproduce:

Start the application (npm start). Navigate to the login page. Observe the console logs for the ResizeObserver loop error. Expected Behavior: No errors or warnings related to ResizeObserver should appear in the console during normal page rendering.

Actual Behavior: The following error appears:

ResizeObserver loop completed with undelivered notifications. Environment:

React: 18.3.1 React Router DOM: 6.26.2 Node: v16.x Browsers: Chrome (latest), Edge (latest) Troubleshooting Steps:

Tried suppressing the error with a global error handler (unsuccessful). Attempted disabling React StrictMode to avoid double rendering (unsuccessful). Installed resize-observer-polyfill and used it to replace the native ResizeObserver (unsuccessful). Confirmed no explicit usage of ResizeObserver in our codebase; the issue likely originates from third-party libraries or React's internal handling. Proposed Fix: Further investigation needed to either suppress or resolve this error, possibly related to React's internal rendering behavior or a specific third-party component/library.

image