Skip to content

Is possible to update configuration and and uiState parts at once? #5499

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

You must be logged in to vote

If you have a HitsPerPage widget, you can use setIndexUiState

const VirtualHitsPerPage() {
  useHitsPerPage();
  return null;
}

setIndexUiState({
  hitsPerPage: 4
})

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@Haroenv
Comment options

@jsdmc
Comment options

@Haroenv
Comment options

@jsdmc
Comment options

@jsdmc
Comment options

Answer selected by jsdmc
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants