Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debounce search query API calls #41

Open
04jono opened this issue Oct 28, 2024 · 1 comment
Open

Debounce search query API calls #41

04jono opened this issue Oct 28, 2024 · 1 comment

Comments

@04jono
Copy link
Member

04jono commented Oct 28, 2024

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
Copy link
Member Author

04jono commented Oct 28, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant