nuxt-modules / algolia

🔎 Algolia module for Nuxt
https://algolia.nuxtjs.org/
MIT License
185 stars 32 forks source link

Added optional key to useAlgoliaRecommend #159

Closed LoMonacoSalvatore closed 12 months ago

LoMonacoSalvatore commented 12 months ago

Types of changes

Description

Multiple useAlgoliaRecommend calls would overwrite the 'recommend-result' useState. Added an optional key param to make it unique composable

Checklist:

nuxt-studio[bot] commented 12 months ago

Live Preview ready!

Name Edit Preview Latest Commit
Algolia Edit on Studio ↗︎ View Live Preview 8926b208a284172e689421a2e6d671073cf27b72
Baroshem commented 12 months ago

Hey @LoMonacoSalvatore

Thank you so much for this PR. I have added a small recommendation to your code that could make the DX a bit better :)

LoMonacoSalvatore commented 12 months ago

@Baroshem looks way better! Thank you for your change!

Archetipo95 commented 12 months ago

@Baroshem This is a very useful fix, I'm experiencing the same problem with algolia in my project and I think that this will solve it!

Baroshem commented 12 months ago

Hey folks,

Sorry I had an emergency yesterday. I am merging the code and will release it with the next version soon :)

Baroshem commented 12 months ago

Release with 1.9.0 version :)