useRoomContext
Ensures that a room is provided via context. If no room is provided, an error is thrown.
Import
import { useRoomContext } from "@livekit/components-react";
Returns
Room;
Source
Ensures that a room is provided via context. If no room is provided, an error is thrown.
import { useRoomContext } from "@livekit/components-react";
Room;