Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
fix(createInstantSearchManager): do not trigger search on index update (
Browse files Browse the repository at this point in the history
#2552)

* fix(createInstantSearchManager): do not trigger search on index update

* fix(createInstantSearchManager): add comment in updateIndex
  • Loading branch information
yannickcr authored and Haroenv committed Aug 19, 2019
1 parent 6d9a2df commit 2d4924c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export default function createInstantSearchManager({

function updateIndex(newIndex) {
initialSearchParameters = initialSearchParameters.setIndex(newIndex);
search();
// No need to trigger a new search here as the widgets will also update and trigger it if needed.
}

function getWidgetsIds() {
Expand Down

0 comments on commit 2d4924c

Please sign in to comment.