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;
Source
Ensures that a participant is provided via context. If not inside a ParticipantContext
, an error is thrown.
import { useParticipantContext } from "@livekit/components-react";
Participant;