-
Notifications
You must be signed in to change notification settings - Fork 399
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
Add ability to limit how often onValuesChange fires #41
Comments
Not really. But yeah if you just use underscore / lodash and use the _.throttle on the callback with, 1000 as the rate it should be fine. |
Actually debounce would be better here since you're probably looking to do a calculation of the last value provided! |
That could work but I'm not exactly trying to pull in another library for this one thing but I did manage to get what I need just by setting a timestamp whenever |
Well done! Glad you solved it ! |
I'm currently running some calculations every time the value changes when I'm sliding it, but I would like it to only fire the onValuesChange method a couple times every second.
Is there a way to limit this currently? I wasn't able to see anything popping out at me in the source code for this project. If not could it possibly be added?
The text was updated successfully, but these errors were encountered: