Skip to content

Added optional key to useAlgoliaRecommend#159

Merged
Baroshem merged 4 commits intonuxt-modules:mainfrom
LoMonacoSalvatore:patch-1
Aug 3, 2023
Merged

Added optional key to useAlgoliaRecommend#159
Baroshem merged 4 commits intonuxt-modules:mainfrom
LoMonacoSalvatore:patch-1

Conversation

@LoMonacoSalvatore
Copy link
Copy Markdown
Contributor

@LoMonacoSalvatore LoMonacoSalvatore commented Aug 1, 2023

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

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

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes (if not applicable, please state why)

@nuxt-studio
Copy link
Copy Markdown

nuxt-studio bot commented Aug 1, 2023

Live Preview ready!

Name Edit Preview Latest Commit
Algolia Edit on Studio ↗︎ View Live Preview 8926b20

@LoMonacoSalvatore LoMonacoSalvatore changed the title added optional key to useAlgoliaRecommend Added optional key to useAlgoliaRecommend Aug 1, 2023
Copy link
Copy Markdown
Collaborator

@Baroshem Baroshem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On recommendation for better Developer Experience IMO :)

@Baroshem
Copy link
Copy Markdown
Collaborator

Baroshem commented Aug 2, 2023

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
Copy link
Copy Markdown
Contributor Author

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

@Archetipo95
Copy link
Copy Markdown
Contributor

@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
Copy link
Copy Markdown
Collaborator

Baroshem commented Aug 3, 2023

Hey folks,

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

@Baroshem Baroshem merged commit 4e0e71e into nuxt-modules:main Aug 3, 2023
@Baroshem
Copy link
Copy Markdown
Collaborator

Baroshem commented Aug 3, 2023

Release with 1.9.0 version :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants