Ability to turn off the first search #1246
-
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.
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.
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/