GitHub

Source

useMaybeParticipantContext

Returns a participant from the ParticipantContext if it exists, otherwise undefined.

Import

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

Returns

Participant | undefined;