#community-help

Query on Menu RefinementList and Usage of Typesense with React-InstantSearch-Hooks

TLDR Dipankar wanted to refine menus using react-instantsearch-dom and inquired on Typesense's compatibility with react-instantsearch-hooks. Jason recommended using connectCurrentRefinements and confirmed Typesense's compatibility.

Powered by Struct AI
Jun 10, 2022 (19 months ago)
Dipankar
Photo of md5-5b972823ad64a4cfe9700cd5729e8061
Dipankar
10:23 PM
Hii all, I have a Menu RefinementList And when I select one item I want to reset all the other filters/RefinementList and then selent the menu value. ( ClearRefinements will not work as I want to clear all then add the clicked menu value). I'm using react-instantsearch-dom. Also does typesense works with react-instantsearch-hooks ?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
10:31 PM
I think you can use the connectCurrentRefinements to do this. This method seems to clear all the refinements programmatically: https://www.algolia.com/doc/api-reference/widgets/clear-refinements/react/#connector-param-provided-refine

> Also does typesense works with react-instantsearch-hooks
I think it will, since what the adapter does is replace the Algolia search client with typesense's search client. Everything else is handled by instantsearch. Let me know if you run into any typesense specific issues if you get a chance to try it out