Correct order in which to set ui state and configuration #6537
-
I am trying to change multiple properties in ui state at the same time. Namely I find that using Anyway - I was able to work around it by using both |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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? |
Beta Was this translation helpful? Give feedback.
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?