Skip to content

Custom connector, refine and/or custom states props #5344

Answered by Haroenv
felipepastor asked this question in Q&A
Discussion options

You must be logged in to vote
  1. you can either still create a custom connector, as in the guide here https://www.algolia.com/doc/guides/building-search-ui/widgets/create-your-own-widgets/react-hooks/. If you're confused or stuck at any point, don't hesitate to let us know so we can improve that guide.

Alternatively you can also use the set(Index)UiState function from useInstantSearch https://www.algolia.com/doc/api-reference/widgets/use-instantsearch/react-hooks/#widget-param-setindexuistate to set multiple refinements at once

  1. Could you clarify more what you mean with "custom attribute"? I'm not sure I understand what you are trying to do

Replies: 0 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@felipepastor
Comment options

@Haroenv
Comment options

@felipepastor
Comment options

@jsdmc
Comment options

Answer selected by felipepastor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Library: React InstantSearch ≥ 7 Issues in any of the react-instantsearch@7 packages (formerly named react-instantsearch-hooks)
3 participants