useMaybeRoomContext
Returns the room context if it exists, otherwise undefined.
Import
import { useMaybeRoomContext } from '@livekit/components-react';
Returns
Room | undefined;
Returns the room context if it exists, otherwise undefined.
import { useMaybeRoomContext } from '@livekit/components-react';
Room | undefined;
Previous
useMaybeParticipantContextUp Next
useMaybeTrackContext