Skip to content

Commit d896a30

Browse files
docs(examples): use getAlgoliaSearchParams in RS + categories
1 parent 28e0f11 commit d896a30

File tree

1 file changed

+2
-2
lines changed
  • examples/query-suggestions-with-recent-searches-and-categories

1 file changed

+2
-2
lines changed

examples/query-suggestions-with-recent-searches-and-categories/app.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ const querySuggestionsPlugin = createQuerySuggestionsPlugin({
1818
searchClient,
1919
indexName: 'instant_search_demo_query_suggestions',
2020
getSearchParams() {
21-
return {
21+
return recentSearchesPlugin.data.getAlgoliaSearchParams({
2222
hitsPerPage: 5,
23-
};
23+
});
2424
},
2525
categoryAttribute: [
2626
'instant_search',

0 commit comments

Comments
 (0)