[Vuejs]-Autocomplete search with previews: should I load all products beforehand and only search in the front-end?

0👍

I would advise against pulling all of your records in Vuex at once. You could use debounce in such a way that it gets executed immediately, and further presses wait 0.5s before firing a search. It’s also possible to send the query to your backend, and have it hit an elasticsearch index.

Leave a comment