algolia / vue-instantsearch

👀 Algolia components for building search UIs with Vue.js
https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/vue
MIT License
854 stars 157 forks source link

fix(searchbox): prevent concurrent query updates from state while input is focused #1133

Closed dhayab closed 2 years ago

dhayab commented 2 years ago

JIRA: FX-1552

Fixes #1123

This PR prevents state from overriding the query value in a search box if it still has focus. This can happen in a search-as-you-type environment when network speed is low and a user keeps on typing a query while requests are resolved.

codesandbox-ci[bot] commented 2 years ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 6aa78c68f9736694df794f42c172a45ab24d2454:

Sandbox Source
vue-instantsearch-e-commerce Configuration