Closed wrussell1999 closed 2 years ago
I can take a stab at this.
Hey @quachtridat and @Hemansh31 , had a suggestion. We have made PR #23, in which we store the most recent 5 searches of a user. So using that, you can show the autocomplete results even when the search bar is empty, as search engines do, ex. Google.
Me, @ShiviPro and @khattakdev have had a discussion about same at #12.
If you like the suggestion, and need any help feel free to tag @ShiviPro or me anywhere😊 .
@Tanmay000009 I do think having recent searches pop up while the search bar is empty is a good idea. I believe it can be implemented fairly quickly because you guys solve #12 by storing data in local storage (#23) and having a React state for it.
At the moment, when you type in a city, it won't help you finish your entry with suggestions. A cool feature would be if it had a drop down menu that suggested locations similar to the name. For example, if I type in
Cambridge
, it could tell meCambridge, MA, USA
orCambridge, UK
to help users get the right answers!