React-instantsearch: Add a way to debounce the queries

Created on 13 Feb 2018  路  3Comments  路  Source: algolia/react-instantsearch

Bug: What is the current behavior?
When we have a facet we wish to search through, it fires off a search query on every keystroke. If somebody is going to type quickly then it's a waste of query volume, especially as low pricing plans only have 75 per second.

Bug: What is the expected behavior?
The ability to delay/throttle this behaviour would be really useful.

鉂勶笍鉂勶笍 medium Feedback Feature request

Most helpful comment

Here is an example that show how to implement it with connectSearchBox.

All 3 comments

@danhodkinson you can use a library like lodash to throttle the search query in your own code

@BrentLayne can you provide or point to an example of this?

Definitely +1 to having this functionality out of the box though.

Here is an example that show how to implement it with connectSearchBox.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

denkristoffer picture denkristoffer  路  4Comments

flouc001 picture flouc001  路  4Comments

noclat picture noclat  路  3Comments

vinhlh picture vinhlh  路  5Comments

oznekenzo picture oznekenzo  路  3Comments