Skip to content

Correct order in which to set ui state and configuration #6537

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

You must be logged in to vote

Unfortunately I don't think this use case is entirely optimised, but set ui state is debounced, and refine of widgets isn't. Therefore this combination will always do multiple searches.

Configure works best if it's only controlled with props, have you tried that option (calling setUiState for refinement list, and changing the props of a configure)?

I think in general it may be best to create a sandbox so the timing constraints of your whole app can be taken in account.

Which parameter is it that you're changing at the same time?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@callmekatootie
Comment options

@Haroenv
Comment options

Answer selected by callmekatootie
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