State

constructor(query: String = "", canLoadMore: Boolean = true, results: List<Message> = emptyList(), isLoading: Boolean = false, isLoadingMore: Boolean = false)

Parameters

query

The current search query value.

results

The found messages to render.

canLoadMore

If we've reached the end of messages, to stop triggering pagination.

isLoading

If we're currently loading data (initial load).

isLoadingMore

If we're loading more items (pagination).