useParticipantContext
Ensures that a participant is provided via context. If not inside a ParticipantContext
, an error is thrown.
Import
import { useParticipantContext } from '@livekit/components-react';
Returns
Participant;
Ensures that a participant is provided via context. If not inside a ParticipantContext
, an error is thrown.
import { useParticipantContext } from '@livekit/components-react';
Participant;
Previous
useMediaTrackByNameUp Next
useParticipantInfo