React InstantSearch - Is there any way to handle search results

I’m using React InstantSearch in my app.
Is there any way to transform search results (reorder, add new some data…) before display on Hits? In my case, I want to reorder results by a custom field.

Hi @minhnc.com,

In order transform your hits data before displaying them, you can take a lookt at the connectHits.

As another note, If you’re also interested in sorting results by a field, checkout the sorting guide and the sortBy React-InstantSearch widget.

Thanks,
Guy

1 Like

Thank you @guy.daher!

1 Like