GitHub

Source

useMaybeRoomContext

Returns the room context if it exists, otherwise undefined.

Import

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

Returns

Room | undefined;