useChatroomSearch
Introduction
The useChatroomSearch
hook is used to implement the chatroom search. Use these to create your own custom UI for chatroom search.
Property | Type | Description | Optional |
---|---|---|---|
searchList | Chatroom[] | List of chatrooms matching the search query. | |
resetSearch | ZeroArgVoidReturns | Resets the search results. | |
searchChatrooms | ZeroArgVoidReturns | Initiates the search for chatrooms. | |
loadMoreChatrooms | boolean | Indicates if more chatrooms can be loaded. | |
searchKey | string | The current search keyword. | |
setSearchKey | Dispatch<string> | Updates the search keyword. | |
onSearchChatroomClick | OneArgVoidReturns | Handles the click event on a search result. |
Reference
For reference checkout this file