Closed mthuret closed 1 year ago
Yes for this, being able to express the state of a search UI in a common way in all our InstantSearch libraries and being able to serialise this state to either helper or REST API requests is key for the future of InstantSearch.
Hey!
We're doing a round of clean up before migrating this repository to the new InstantSearch monorepo. This issue seems not to have generated much activity lately and to be mostly solved, so we're going to close it.
Both React InstantSearch and React InstantSearch Hooks accept an initial state:
The initialUiState
prop is serializable, so you can easily share it between implementations (e.g., web and native).
Use case:
For example, you're using React-InstantSearch for a web application and a native mobile client for the mobile app. Right now, there's no way to share the state between those app. It means that RIS can't provide enough information to build the state that is needed for the native client.
Proposal:
TBD