react-use-measure
react-use-measure copied to clipboard
Use custom debounce method
Is there a way to use a custom debounce method? My project is using lodash/debounce and this package installs its own debounce dependency. In order to save bytes, can I use lodash/debounce with this package? I'd like a similar API to adding a ResizeObserver
polyfill.
const [ref, bounds] = useMeasure({ debounceFn: customDebounce });
Thank you for this package!