algolia / react-instantsearch

⚡️ Lightning-fast search for React and React Native applications, by Algolia.
https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/react/
MIT License
1.97k stars 386 forks source link

Having the search state compatible with all our other libraries #111

Closed mthuret closed 1 year ago

mthuret commented 7 years ago

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

vvo commented 7 years 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.

sarahdayan commented 1 year ago

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).