useMaybeParticipantContext
Returns a participant from the ParticipantContext
if it exists, otherwise undefined
.
Import
import { useMaybeParticipantContext } from '@livekit/components-react';
Returns
Participant | undefined;
Returns a participant from the ParticipantContext
if it exists, otherwise undefined
.
import { useMaybeParticipantContext } from '@livekit/components-react';
Participant | undefined;
Previous
useMaybeLayoutContextUp Next
useMaybeRoomContext