If you're creating a custom configure widget with connectConfigure, you might want to store the Search Parameters the widget adjusts in the URL. You could Manually Rewrite your URL's to store the Search Parameters of your custom configure widget in the URL.
This CodeSandBox shows you how you can access the uiState on page load via search._initialUiState followed by your index name, configure. In this example we are using the distinct parameter.
In the CodeSandBox in the isFirstRender function we set
to conditionally equal
if its present or "false" if it's not.
This way we handle if the searchParameters for distinct are present and set distinct to false in cases where it is not.
Article is closed for comments.