GitHub

Source

useEnsureParticipant

Ensures that a participant is provided, either via context or explicitly as a parameter. If not inside a ParticipantContext and no participant is provided, an error is thrown.

Import

import { useEnsureParticipant } from "@livekit/components-react";

Properties

participant?Participant

Returns

Participant;