Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ResizeObserver loop completed with undelivered notifications. #442

Open
stepan-anokhin opened this issue Oct 21, 2021 · 0 comments
Open
Assignees
Labels
bug Something isn't working tech debt tests

Comments

@stepan-anokhin
Copy link
Collaborator

stepan-anokhin commented Oct 21, 2021

Some of the e2e tests fail on Firefox with the following error message:

The following error originated from your application code, not from Cypress.

  > ResizeObserver loop completed with undelivered notifications.

Failing tests are:

  • app_menu_spec
  • collection_page_spec

The problem is caused by FileGridList, FileLinearList and FilesCollection components using the useResizeDetector hook (from react-resize-detector).

The problem seems to be caused by the component changing its size during the ReactObserver event handling (which results in infinite recursion). The actual mechanism of infinite size-modification could be tricky. See for example the following comment: juggle/resize-observer#103 (comment)

The problem is reproducible only in e2e tests on Firefox, so the error is temporary ignored. (

Side note. Another related error is

ResizeObserver loop limit exceeded

But it could be safely ignored. See discussion in https://stackoverflow.com/a/50387233

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tech debt tests
Projects
None yet
Development

No branches or pull requests

1 participant