How to set custom label for connectors #5502
Unanswered
AntoineDuComptoirDesPharmacies
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
React InstantSearch Hooks/InstantSearch.js indeed doesn't have this functionality, as technically every filter can only be once in the UI. in theory you could keep a separate map of which filter matches which label that you can use in CurrentRefinements. Is that something that could work for your use case? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
In react-instantsearch-dom, we were able to set custom label for a given connector and get back this label in the
currentRefinements.See : https://github.com/algolia/instantsearch/blob/master/packages/react-instantsearch-core/src/connectors/connectToggleRefinement.js#L176
Is there a way to accomplish the same in react-instantsearch-hook ?
We notice
transformItemsmethod oncurrentRefinementsbut its too late as if multiple checkbox are applied on the same attribute, we can not distinguish them.Yours faithfully,
LCDP
Beta Was this translation helpful? Give feedback.
All reactions