If you're using InstantSearch and your uiState seems to be ignored—whether passed through initialUiState or routing—it's likely due to incorrect nesting. This guide explains how to structure uiState properly so it’s recognized by the library.
The uiState must be nested by index name, even if you're only using a single index. For example, if your root index is called "instant_search", the correct format would be:
{
instant_search: {
query: 'query'
}
}
Without this nesting, the uiState won't apply as expected. Be sure the key matches the index name you're using in your InstantSearch configuration.