Harshil Sharma
Harshil Sharma

Reputation: 215

ResizeObserver loop completed with undelivered notifications. In Tabulator with React

Showing this Error when screen size changes.

Run Time error: ResizeObserver loop completed with undelivered notifications

I am using Tabulator in react for Data Tables.

This happens when I am doing Zoom in or Zoom out the browser screen.

Upvotes: 1

Views: 3725

Answers (1)

Eduard
Eduard

Reputation: 535

The "ResizeObserver loop completed with undelivered notifications" error in React with Tabulator often occurs due to rapid resizing of elements. To resolve it:

Update Dependencies: Ensure you're using the latest React and Tabulator versions.

Debounce Resize Events: Use a debounce function to limit resize event frequency.

ResizeObserver Polyfill: Consider using a polyfill for consistent behavior.

const handleResize = debounce(() => {
}, 200);

window.addEventListener('resize', handleResize);

Upvotes: 1

Related Questions