Instant Serach JS makes two queries on load

instantsearchjs is making two algolia query calls one with empty parameter and other with custom query added to via

instantsearch.widgets.configure({
query: ‘my search text’

1 Like

Hi @ayaz.ahmed, the query parameter is best used with the search method as opposed to the configure widget. Do you still get two algolia query calls using that method?

@cindy.cullen thanks, used

searchFunction(helper) {
    helper.setQuery(`${Searchquery}`)
          .search();
    }

works now, making just one call
many thanks again :relieved:

1 Like