This is the React InstantSearch v7 documentation.
If youâre upgrading from v6, see the upgrade guide.
If you were using React InstantSearch Hooks,
this v7 documentation appliesâjust check for necessary changes.
To continue using v6, you can find the archived documentation.
status indicator to decide when to show a loading indicator. The status can be one of the following:
loading: The search is in progress.stalled: The search is in progress, but the response is taking longer than expected.error: The search failed.idle: The search succeeded.
status is stalled, not during a standard (fast) search.
Tweak the timing of the stalled status by setting the stalledSearchDelay option.
You can then use this condition to display a loading indicator:
React
loading status in combination with stalled:
React