GitHub

Source

useMaybeLayoutContext

Returns a layout context from the LayoutContext if it exists, otherwise undefined.

Import

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

Returns

LayoutContextType | undefined;