Fork me on GitHub
#reagent
<
2020-07-15
>
Vishal Gautam21:07:10

how do you do debounce/throttle in reagent

Vishal Gautam21:07:38

i have a search component that fires an api call to aws as i type, i want to add delay, lets say 500ms

p-himik22:07:28

Same way you'd do it in JS - call setTimeout, save its result, cancel it and reschedule if there's new input within 500ms.