Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use custom debounce method #86

Open
charkour opened this issue Jul 1, 2022 · 0 comments
Open

Use custom debounce method #86

charkour opened this issue Jul 1, 2022 · 0 comments

Comments

@charkour
Copy link

charkour commented Jul 1, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant