designsystemsinternational/mechanic

Add debounce to input onChange

Closed this issue · 0 comments

Is your feature request related to something something in Mechanic? Please describe.
I think we should add a debounce whenever the user types in one of the input fields.

Is your feature request related to a problem? Please describe.
When I have a sketch with a number input and I need to type "100, the sketch is run for both 1, 10 and 100. This will often lead to crashing the app if you're relying on those values to perform intensive drawing.

Describe the solution you'd like
That I could type in the input field and only after a few miliseconds of inactivity, the design function should run.