Signature
Explore example code
Browse the Loading example code on GitHub.
About this widget
Components that show a loading indicator during pending requests. To add a loading indicator to your search experience, use these components:Searcher. TheSearcherthat handles your searches.LoadingViewModel. The logic applied to the loading indicator.LoadingView. The concrete view displayed during loading.
Examples
Kotlin
Parameters
The
Searcher that handles your searches.Delays searcher operations by a specified time duration.
ViewModel
ViewModel
View
Compose UI
InstantSearch provides theLoadingState as a state model, which is an implementation of the LoadingView interface.
You need to connect LoadingState to the LoadingConnector or LoadingViewModel like any other LoadingView implementation.
Kotlin