unicef / magicbox-maps

Map mobility data in a NodeJS + React front-end application with data served by magicbox-open-api
http://magicbox-maps.azurewebsites.net
BSD 3-Clause "New" or "Revised" License
11 stars 11 forks source link

Remove school names from Select auto-complete, else app is sluggish a… #87

Closed mikefab closed 6 years ago

mikefab commented 6 years ago

When school names are added to schools.json, the app gets prohibitively sluggish. This is because the Select component is rendered constantly on map pan. This okay for 1200 admin names, but not 40k schools names.

Quick fix is to remove school names from Select until solution is found to only have createFilterOptions({options})} when options change.