This repository has been archived by the owner on Jan 1, 2025. It is now read-only.
Replies: 1 comment 4 replies
-
It should be reasonable to debounce a callback provided to |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
Thanks a lot for the nice library. I was wondering how one would go about throttling an effect (
onSet
). I'm updating a value very frequently and I'd like it logged. For simplicity's sake, assume this was aprogressbar
being dragged. I'd like to eventually store that value, but, if the user keeps dragging it for 5s straight, I should still only fire alogSomething
function once, not hundreds/thousands of times. There are multiple ways to tackle. Plenty of libraries too. However, when trying to use lodash'sthrottle
(together withmemoize
), it fails. I am not privy to how/when effects are ran and their bindings.Any ideas? Appreciate it.
Beta Was this translation helpful? Give feedback.
All reactions