Set signal throttle/debounce #923
FallingSnow
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
We usually prefer composability over integrated solutions. Have a look at the external solid-primitives packages for debounce and throttle. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I feel like debouncing or throttling things like user input are a common enough occurrence that it might warrant adding these features as part of the options in
createSignal
. Although adding this "unnecessary" code would add technical debt and might have very very slight performance implications.These options (
throttle
,debounce
) could take a function or a number of milliseconds.What are your thoughts on adding optional debounce/throttle functions to the signal setter?
Beta Was this translation helpful? Give feedback.
All reactions