Open 04jono opened 1 month ago
Don't make search calls on every character change, instead debounce changes to the input flow.
See: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/debounce.html
Also, maybe refactor search to make it more centralized (SearchViewModel?)
Don't make search calls on every character change, instead debounce changes to the input flow.
See: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/debounce.html