GitHub

Source

useEnsureLayoutContext

Ensures that a layout context is provided, either via context or explicitly as a parameter. If not inside a LayoutContext and no layout context is provided, an error is thrown.

Import

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

Properties

layoutContext?LayoutContextType

Returns

LayoutContextType;