useMaybeLayoutContext
Returns a layout context from the LayoutContext
if it exists, otherwise undefined
.
Import
import { useMaybeLayoutContext } from '@livekit/components-react';
Returns
LayoutContextType | undefined;
Returns a layout context from the LayoutContext
if it exists, otherwise undefined
.
import { useMaybeLayoutContext } from '@livekit/components-react';
LayoutContextType | undefined;
Previous
useLocalParticipantPermissionsUp Next
useMaybeParticipantContext