1 parent bd6b854 commit 18a42aaCopy full SHA for 18a42aa
1 file changed
packages/react-core/src/helpers/resizeObserver.tsx
@@ -1,4 +1,4 @@
1
-import { canUseDOM, debounce } from './util';
+import { canUseDOM } from './util';
2
3
/**
4
* This function creates a ResizeObserver used to handle resize events for the given containerRef. If ResizeObserver
@@ -83,7 +83,7 @@ export const getResizeObserver = (
83
if (useRequestAnimationFrame) {
84
window.requestAnimationFrame(() => {
85
if (Array.isArray(entries) && entries.length > 0) {
86
- debounce(handleResize, 100);
+ handleResize();
87
}
88
});
89
// Avoid wrapping function in requestAnimationFrame if the function is debounced
0 commit comments