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

Avoid ResizeObserver loop limit exceeded #1025

Open
nilsgabriel opened this issue Feb 9, 2023 · 4 comments
Open

Avoid ResizeObserver loop limit exceeded #1025

nilsgabriel opened this issue Feb 9, 2023 · 4 comments

Comments

@nilsgabriel
Copy link

nilsgabriel commented Feb 9, 2023

While listening on window error events ResizeObserver loop limit exceeded pops up in Chrome while dragging items between different sortable contexts. Not always but from time to time. (In Firefox ResizeObserver loop completed with undelivered notifications.)

The issue is described here: WICG/resize-observer#38
caused most likely by this hook: useResizeObserver

A solution would be a requestAnimationFrame wrapper (see airbnb/visx#335)

Using versions

@dnd-kit/[email protected]
@dnd-kit/[email protected]
@dnd-kit/[email protected]

@iamterryclark
Copy link

I've started to get this issue also,

Is there any work around?

In debug we get this message popping up all the time

@goldmont
Copy link

Hi, same here.

@dnd-kit/[email protected]
@dnd-kit/[email protected]
@dnd-kit/[email protected]
@dnd-kit/[email protected]

@reinvanimschoot
Copy link

I just started experiencing the same issue, with a nested SortableContexts. Any workaround for this?

@RafaelCENG
Copy link

RafaelCENG commented Jan 26, 2024

Hello, same here
"@dnd-kit/core": "^6.1.0",
Happens when i drag components within my drop area. Also it doesnt happend when inspect is opened.
ResizeObserver loop completed with undelivered notifications. --> Google Chrome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants