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;
Ensures that a room is provided via context. If no room is provided, an error is thrown.
import { useRoomContext } from '@livekit/components-react';
Room;
Previous
useRemoteParticipantsUp Next
useRoomInfo