Ignore HierarchicalMenu refinements in CurrentRefinement widget


How can do the above in the question with react-instantsearch. Basically when the user selects the menu item in Hierarchy, I do not see a point of also putting the option in my current refinements widgets.


Hi @harshmaur,

Every widgets that handle a list of items also have a prop called transformItems. This is a function to modify the items being displayed, e.g. for filtering or sorting them. It takes an items as parameter and expects it back in return.

You could remove the hierarchical menu refinements from this list of items.

Oh okay, I will try it out and get back to you

Worked great!! THanks a lot