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

Implement transformItems API on widgets #2949

Closed
iam4x opened this issue May 29, 2018 · 0 comments
Closed

Implement transformItems API on widgets #2949

iam4x opened this issue May 29, 2018 · 0 comments

Comments

@iam4x
Copy link
Contributor

iam4x commented May 29, 2018

On every other InstantSearch flavours widgets have a simple API to perform any operation on the items before they are renderer. (ex: sort, map, ...)

From React-InstantSearch documentation:

Function to modify the items being displayed, e.g. for filtering or sorting them.
Takes an items as parameter and expects it back in return.

(items) => items.map(...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant