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.
Jun 10, 2022 (19 months ago)
Dipankar
10:23 PMClearRefinements
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
10:31 PMconnectCurrentRefinements
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
Typesense
Indexed 3015 threads (79% resolved)
Similar Threads
Unit Testing ClearRefinement React InstantSearch Component
alex asked for a guide on unit testing the ClearRefinement React InstantSearch component. Jason suggested they post their question in the Algolia instantsearch Github repo, as the testing method for Algolia will work with typesense-instantsearch-adapter.
Implementing Search Suggestion/Autocomplete Functionality in Typesense
Denis needed advice on implementing search suggestions in Typesense. Jason provided a solution for fetching after 3+ letters. However, questions on design pattern and passing hooks remain unanswered.
Issue with Typesense Instantsearch and Upgrading to React 18
Carl experienced problems updating packages for a project. VIVEK suggested disabling reactStrictMode, while Jason insisted on downgrading to React 17 due to compatibility issues. Carl eventually found a workaround.