Skip to content

Commit

Permalink
feat: plug searchForFacetValues for Composition
Browse files Browse the repository at this point in the history
  • Loading branch information
e-krebs committed Dec 20, 2024
1 parent 26a7929 commit 00e11cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/instantsearch.js/src/lib/InstantSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,11 @@ See documentation: ${createDocumentationLink({
persistHierarchicalRootCount: this.future.persistHierarchicalRootCount,
});

if (this.compositionID) {
mainHelper.searchForFacetValues =
mainHelper.searchForCompositionFacetValues.bind(mainHelper);
}

mainHelper.search = () => {
this.status = 'loading';
this.scheduleRender(false);
Expand Down

0 comments on commit 00e11cb

Please sign in to comment.