algolia / instantsearch

⚑️ Libraries for building performant and instant search experiences with Algolia. Compatible with JavaScript, TypeScript, React and Vue.

Home Page:https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to modify configure settings using setIndexUIState

cesarvarela opened this issue Β· comments

πŸ› Current behavior

Seems it is not possible to change configure settings via setIndexUiState. When attempting to do so, the configure key gets removed from the state tree..`

I'm using a state mapping that keeps the configure key in the state after finding that the simple mapping was removing it (#5892)

πŸ” Steps to reproduce

Open the code sandbox and click the Change Distinct settings button.

Live reproduction

https://codesandbox.io/s/inspiring-water-c5mcv4?file=/src/App.tsx

πŸ’­ Expected behavior

I think it should let you change the distinct (and other settings as well) using setIndexUiState.

Package version

7.2.0

Operating system

No response

Browser

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct