Signature
About this widget
TherenderState property provides all the data and functions from the widgets.
It lets you access the render state of any widget from anywhere,
so you can create custom widgets or refine the search outside the InstantSearch.js lifecycle.
The
renderState property is available starting in InstantSearch.js v4.9.Examples
You can access the render state of thesearchBox widget.
JavaScript
Working with virtual widgets
To access therenderState of widgets, you must add them to the InstantSearch instance.
If you don’t want to add a widget to the UI,
but want to get access to its renderState, you can add it as a virtual, or renderless widget.
Type definition
TypeScript