React-instantsearch: Duplicate refinements in CurrentRefinements with multiple times same widget

Created on 30 Jan 2019  ยท  2Comments  ยท  Source: algolia/react-instantsearch

Describe the bug ๐Ÿ›

On my page i have two MenuSelect components in different locations on the page. When i click on a selection on the MenuSelect, i do get duplicate labels in the CurrentRefinements

To Reproduce ๐Ÿ”

Steps to reproduce the behavior:
Add two MenuSelect components on the page with a CurrentRefinement component as well

A live example helps a lot! We have a simple online template for you to use for your explanations:

https://codesandbox.io/s/53571y85mk

Screenshots ๐Ÿ–ฅ

image

โ” Question

Most helpful comment

Yes it's the expected behaviour with our current API. You can get rid of the duplicate refinements with transformItems on CurrentRefinements. Here is an example that shows how to implement it.

All 2 comments

Yes it's the expected behaviour with our current API. You can get rid of the duplicate refinements with transformItems on CurrentRefinements. Here is an example that shows how to implement it.

Ok thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

flouc001 picture flouc001  ยท  4Comments

oznekenzo picture oznekenzo  ยท  3Comments

mthuret picture mthuret  ยท  5Comments

flouc001 picture flouc001  ยท  5Comments

markmiller21 picture markmiller21  ยท  3Comments