We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ca44b5 commit 294c7cfCopy full SHA for 294c7cf
1 file changed
src/DocSearchModal.tsx
@@ -69,13 +69,13 @@ export function DocSearchModal({
69
const searchClient = useSearchClient(appId, apiKey);
70
const favoriteSearches = React.useRef(
71
createStoredSearches<StoredDocSearchHit>({
72
- key: '__DOCSEARCH_FAVORITE_SEARCHES__',
+ key: `__DOCSEARCH_FAVORITE_SEARCHES__${indexName}`,
73
limit: 10,
74
})
75
).current;
76
const recentSearches = React.useRef(
77
78
- key: '__DOCSEARCH_RECENT_SEARCHES__',
+ key: `__DOCSEARCH_RECENT_SEARCHES__${indexName}`,
79
// We display 7 recent searches and there's no favorites, but only
80
// 4 when there are favorites.
81
limit: favoriteSearches.getAll().length === 0 ? 7 : 4,
0 commit comments