pinballmap / pbm-react

PBM React Native: iOS & Android Apps
https://pinballmap.com/app
GNU General Public License v3.0
33 stars 9 forks source link

Include a minimum length before search autocomplete #512

Closed RyanTG closed 1 year ago

RyanTG commented 1 year ago

I've noticed that if you type a single letter, like v, and then pause, the app will basically get stuck for a little while as it does an enormous autocomplete search for all venues/cities/regions that have that single letter. On the website, I recently added a minimum character length of 3 before autocomplete kicks in: https://github.com/pinballmap/pbm/blob/0b8f3a0f060fa94df120e31f5953f05871cd1cb0/app/views/pages/map.html.haml#L112

I'm thinking we should do something similar in the app.

RyanTG commented 1 year ago

Solved via api. Good for now https://github.com/pinballmap/pbm/commit/f344166d7d53bf8144427f637e39f932cf44ad79