-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can TS Adapter be used with react-instantsearch-hooks-web #161
Comments
I'm not too familiar with react-instantsearch-hooks-web, but to answer your question:
I've anecdotally heard users using the adapter with react-instantsearch-hooks-web... All the adapter does is to translate any search requests generated by instantsearch to a format understood by Typesense and vice-versa. And the data format for these search requests is consistent regardless of whether it's vanilla JS, react, vue or angular. |
Hey 👋 I came here to ask a similar question, I tried getting a demo application up and running with the Instantsearch provider from |
@denkristoffer I have a project currently working with |
I assume that a common sense because they change it constantly. So your suggestion is just to use regular instant search as a dom and avoid hooks? |
Description
I am using TS example of
next
implementation https://github.com/typesense/showcase-nextjs-typesense-ecommerce-store. It still uses the old way ofreact-instantsearch-dom/server
implementation which extends thefindResultsState
however, the react instantsearch hooks is using a totally different approach per documentation https://www.algolia.com/doc/guides/building-search-ui/upgrade-guides/react-hooks/Steps to reproduce
Expected Behavior
Return grouped list based on the search parameters
Actual Behavior
I have implemented the instant search with TS via hooks, however, it did not work as expected because it renders the list as is, but if you do any manipulation to the client-side it refreshes the list to the correct way I wanted it to. Example of the implementation https://www.algolia.com/doc/guides/building-search-ui/going-further/server-side-rendering/react-hooks/#server-side-rendering
Metadata
Typesense Adapter Version: 2.6.0
The text was updated successfully, but these errors were encountered: