Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(transformItems): Add transformItems function to useRecommendations hook #9

Merged
merged 4 commits into from
May 17, 2021

Conversation

shortcuts
Copy link
Member

Summary

Similar API as in InstantSearch.js, it receive the items returned by the query and allow the user to change its content, order, etc. The shape returned should remain the same.

Results

Any recommendations component can now use transformItems to transform the results returned by Algolia.

Preview

Copy link
Member

@francoischalifour francoischalifour left a comment

Choose a reason for hiding this comment

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

Let's merge this once https://github.com/algolia/react-recommendations/pull/9/files#r632578219 is addressed, if it makes sense to you.

@shortcuts shortcuts merged commit 6d4dded into next May 17, 2021
@shortcuts shortcuts deleted the feat/transformItems branch May 17, 2021 07:56
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