"use strict";var e=require("react"),r=require("lodash");module.exports=function(n){var c=n.callback,t=n.containerRef,u=n.wait,i=void 0===u?100:u;e.useEffect((function(){var e=r.debounce(c,i),n=new ResizeObserver(e);return t.current&&n.observe(t.current),function(){n.disconnect()}}),[c,t])};
//# sourceMappingURL=useResizeObserver.js.map
