Skip to main content
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.
Use translations.messages.loaderText to change the default loading text, or loaderComponent to replace the default loading state while the agent generates a response. If you’re using React InstantSearch 7.30.0 or earlier, use messagesLoaderComponent instead of loaderComponent.

Change the default loading text

Use translations.messages.loaderText to keep the default loader and change its text.
React

Replace the loading state

Pass a React component to loaderComponent to replace the default loading state:
React
The component receives translations.loaderText as a prop.

Rotate loading messages while the agent is working

To make the loading state more informative, rotate through a short set of helper messages.
React
Keep the text short so the loading state stays readable. For more information, see the Chat API reference.
Last modified on June 2, 2026