react-use-measure icon indicating copy to clipboard operation
react-use-measure copied to clipboard

Use custom debounce method

Open charkour opened this issue 2 years ago • 0 comments

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!

charkour avatar Jul 01 '22 16:07 charkour