Ability to turn off the first search #1246
Answered
by
joemcelroy
dkalpakchi
asked this question in
Q&A
-
Hi! I need searchkit to not perform the search when loading for the first time. I've noticed that in previous versions of searchkit there was a handy boolean flag searchOnLoad that one could set, but now it seems to be gone? Is there any way to do such a thing now? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
joemcelroy
Apr 9, 2023
Replies: 1 comment
-
Yeh so with Searchkit now relying on instantsearch for components, the way they mention advocate is to proxy the search method and add conditional logic when its the first initial request. They have a doc article about this here https://www.algolia.com/doc/guides/building-search-ui/going-further/conditional-requests/react-hooks/ |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
joemcelroy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeh so with Searchkit now relying on instantsearch for components, the way they mention advocate is to proxy the search method and add conditional logic when its the first initial request.
They have a doc article about this here https://www.algolia.com/doc/guides/building-search-ui/going-further/conditional-requests/react-hooks/