feat: implement debounced search in getting search suggestions
Description
Add a delay of 500ms to get search suggestions on search query change.
It reduces extra network calls to https://android.clients.google.com/fdfe/searchSuggest?q=<query>
.
Screenshots
A search for snapchat
in the search screen would make 9 API calls to Google before. It's been reduced to only one API call now.
Before | After |
---|---|
Technical details
Tests
Issues
https://gitlab.e.foundation/e/os/backlog/-/issues/2235?work_item_iid=2361
10 commandments of code reviews
Edited by Fahim Masud Choudhury