Skip to main content

useChatroomSearch

Introduction

The useChatroomSearch hook is used to implement the chatroom search. Use these to create your own custom UI for chatroom search.

PropertyTypeDescriptionOptional
searchListChatroom[]List of chatrooms matching the search query.
resetSearchZeroArgVoidReturnsResets the search results.
searchChatroomsZeroArgVoidReturnsInitiates the search for chatrooms.
loadMoreChatroomsbooleanIndicates if more chatrooms can be loaded.
searchKeystringThe current search keyword.
setSearchKeyDispatch<string>Updates the search keyword.
onSearchChatroomClickOneArgVoidReturnsHandles the click event on a search result.

Reference

For reference checkout this file