Reputation: 215
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
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