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