Skip to main content

useConversationSearch

Introduction​

The useConversationSearch hook is used to implement the conversation search. You can use this hook to create a custom UI for conversation search.

PropertyTypeDescriptionOptional
searchKeystringThe current search keyword for conversations.❌
setSearchKeyDispatch<string>Updates the search keyword.❌
searchListConversation[]List of conversations matching the search query.❌
resetSearchZeroArgVoidReturnsResets the search results.❌
searchConversationsZeroArgVoidReturnsTriggers a conversation search based on searchKey.❌
loadMoreConversationsbooleanIndicates if more conversations can be loaded.❌
onSearchedConversationClickOneArgVoidReturnsHandles the event when a searched conversation is clicked.❌

Reference​

For reference checkout this file