We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32ee1d5 commit 8926b20Copy full SHA for 8926b20
src/runtime/composables/useAlgoliaRecommend.ts
@@ -22,7 +22,7 @@ export function useAlgoliaRecommend<T> (key: string = ''): UseAlgoliaRecommend<T
22
throw new Error('`[@nuxtjs/algolia]` Cannot call useAlgoliaRecommend composable due to missing `algolia.recommend` option.')
23
}
24
25
- const result = useState('recommend-result' + key, () => null)
+ const result = useState(`recommend-result${key ? '-' + key : ''}`, () => null)
26
27
const get = async ({ queries, requestOptions }: RecommendParams) => {
28
result.value = await algoliaRecommend.getRecommendations<T>(queries, requestOptions)
0 commit comments