The useParticipants hook returns all participants (local and remote) of the current room.
useParticipants
To optimize performance, you can use the updateOnlyOn property to decide on what RoomEvents the hook updates.
updateOnlyOn
RoomEvents
const participants = useParticipants();<ParticipantLoop participants={participants}> <ParticipantName /></ParticipantLoop>
Optional
Generated using TypeDoc
The
useParticipants
hook returns all participants (local and remote) of the current room.Remarks
To optimize performance, you can use the
updateOnlyOn
property to decide on whatRoomEvents
the hook updates.Example