Hello guys, I have a question regarding to use the...
# community-help
z
Hello guys, I have a question regarding to use the typesense-instantsearch-adapter to do search with the
RefinementList
control, so basically we have a setup like this
Copy code
<InstantSearch searchClient={adaptedClientForTypesense}>
  <RefinementList1 />
  <RefinementList2 />
  <RefinementList3 />
</InstantSearch>
Each RefinementList is a component connected to refinementList via
connectRefinementList
method. It works fine except that we are seeing 3 requests upon loading the page, it seems it sends request for each refinement, and one of the request contains all refinements (facets) we want. For algolia, it only sends 1 request containing all refinements, and if we want to achieve the same behavior, what should we do?
j
Hmm, it should only send one request (if no filters are selected) in Typesense as well. For eg, many of our demos use Instantsearch with refinement lists, and only one multi_search request is generated. You should be able to verify this by looking at the network request on page load of this URL: https://songs-search.typesense.org/?s%5Bquery%5D=Annie%27s%20song%20Denver I wonder if there's some accidental re-rendering happening in your application, or may be the adapter is being re-initialized multiple times?
👍 1