Is there any way to get the search query value in another component #6255
-
Hi Algolia community, I have been working on a react application in which algolia is integrated, I have an AlgoliaSearchInput component which I am importing into the search modal component, I want to get the search query so I can use this to filter by facets and render the hits, problem is when I try the conventional of doing this by lifting the search query state, it cause the app to freeze, and when I try to pass down state from the parent component to the input box, there is no way to call the refine method on Algolia, can you suggest a solution to this, here is a sample code of what I am currently implementing |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Do you have a reproduction? I can't see what's wrong with the code you provided here. Maybe also look into |
Beta Was this translation helpful? Give feedback.
the package is indeed called
react-instantsearch
, notreact-instantsearch-dom
which has been deprecated since July last year. You should indeed upgrade toreact-instantsearch@7