We’re pleased to announce the release of React InstantSearch 4.1.3
Since 4.1.0 we worked on fixing few bug fixes, a new API and redoing the whole design of our community website.
connectStateResults new connector!
When dealing with conditional display such as no results page, you were forced to use the
createConnector API. The purpose of this API is mainly internal and used for creating new connectors. With its current shape, it might be tricky to understand and ultimately we could deprecate it to propose something easier.
As creating conditional display page is pretty common use case, we decided to wrote a new connector called
connectStateResults. It allows you to create new components able to deal with conditional display but also with any use cases requiring access to the
searchResults and other InstantSearch informations.
If you’re concerned about this new API, a warning will let you know. We encourage you to migrate as soon as possible.
React 16 warning
*List were producing a warning since React 16.
Multi indices API
- You can know update
indexNameprops. This will trigger a new search.
- Page is now reseted to one if a shared widget refines.
Many thanks to @nicolas.torres to pushed the multi indices API further than anyone before!
a new websites design
How can you help?
If you’re using this new version and have any feedbacks for us, please give it on discourse or GitHub