hey guys, is there something like ```afterTextChan...
# compose
f
hey guys, is there something like
Copy code
afterTextChanged
for TextInputField in compose?
a
What do you want to do?
f
Execute search only after the user has stopped typing
s
There’s
onValueChange
no? Doesn’t that suffice?
a
you can use onValueChange together with a debounce of 500ms
f
@Alex that's what i ended up doing @Stylianos Gakis that is triggered on every key stroke
s
Yeah I mean how would it know when it was the last key by itself? All keys are the “last key” until they are not.
think smart 4
c
Compose also doesn't use *Changed specifically as names. It uses present tense in order to convey that nothing actually changes until you, the developer, update the state yourself to change. it was in one of the docs. def one of my favorite little details. I try myself to write all events as present tense as well.