useParticipants
Introduction
The useParticipants
hook is used to fetch the chatroom participant list. You can use this to implement a custom UI for the participant list component.
Property | Type | Description |
---|---|---|
participantsList | Member[] | List of chatroom participants. |
loadMoreParticipants | boolean | Indicates if more participants can be loaded. |
getMembers | ZeroArgVoidReturns | Function to fetch the list of participants. |
navigateBackToChatroom | ZeroArgVoidReturns | Function to navigate back to the chatroom. |
searchKeyword | string | Search keyword used to filter participants. |
setSearchKeyword | Dispatch<string> | Function to update the search keyword. |
totalParticipantCount | number | Total number of participants in the chatroom. |
Reference
For reference checkout this file