cuappdev / ithaca-transit-compose

An open-source Android app for the TCAT bus service
MIT License
5 stars 0 forks source link

Debounce search query API calls #41

Open 04jono opened 1 month ago

04jono commented 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

04jono commented 1 month ago

Also, maybe refactor search to make it more centralized (SearchViewModel?)