exlibris-fed / exlibris

MIT License
4 stars 0 forks source link

Debounce user input for search to prevent spamming API #28

Closed mattgen88 closed 3 years ago

mattgen88 commented 4 years ago

When typing in the search box, ever key press fires off a new API call. Typically waiting 300 to 500 ms before firing off the search is the best way to handle auto-complete. This will drastically reduce API calls to search, which are expensive, and help with the UX, since you won't have search results coming in at different times.

Sigafoos commented 4 years ago

Can you extrapolate on this a bit?