onaio / js-tools

Ona shared JavaScript components and utilities
Apache License 2.0
11 stars 2 forks source link

New Package: UseDebounce #153

Open kelvin-muchiri opened 4 years ago

kelvin-muchiri commented 4 years ago

Is this a new feature or an enhancement? New Package

Is your feature request related to a problem? Please describe. The feature is for standardization, reusability

Describe the solution you'd like

As a developer, I would like to have a standard method for implementing debounce for tasks that I don't want to execute too frequently because of performance such as listening to user input, mouse scroll etc. The implementation should also allow configuration of how long the delay should take

Additional context

No additional context

moshthepitt commented 4 years ago

@kelvin-muchiri is it a new package, or can it go into https://github.com/onaio/js-tools/tree/master/packages/react-utils