groostav
10/10/2019, 8:26 AMFlow<Change<oldValue: String, newValue: String>>
and I want to have a behaviour whereby:
1. we use debounce
for 200 ms, such that as fast edits are made to this text, no changes are published
2. when there is a 200ms pause, it publishes a Change
with the old value from before any changes were made, and the new value after all changes
3. this can be short-circuited by "focus lost", if focus changes from true to false the 200ms wait is interrupted, a change is published right away, and any pending changes are cancelled.
Anybody done something like this? Care to share?
If not, care to speculate with me?Dominaezzz
10/10/2019, 8:56 AMgroostav
10/10/2019, 9:12 AM