any recommendations on how to deal with debounce i...
# javascript
b
any recommendations on how to deal with debounce in Kotlin JS? looking at the JS args, there's a lot of args spreading
b
tl;dr, use flow in kotlinjs?
is flow the reactive lib?
h
I guess the tldr is to just go with
useEffect
in the last post I linked. If you want to use flows, I don't know where they are located, but I was able to just use them without any special dependencies.
b
is useEffect react? because I'm not in react land
h
Oh yes, sorry I assumed react. For pure JS I think you can go with
setTimeout
which you can cancel and restart on the next time the code enters.
b
oh for sure, I'm more struggling with type signatures
seems you can't spread/vararg lambdas