useEnsureRoom
Ensures that a room is provided, either via context or explicitly as a parameter. If no room is provided, an error is thrown.
Import
import { useEnsureRoom } from '@livekit/components-react';
Parameters
Returns
Room;
Ensures that a room is provided, either via context or explicitly as a parameter. If no room is provided, an error is thrown.
import { useEnsureRoom } from '@livekit/components-react';
Room;
Previous
useEnsureParticipantUp Next
useEnsureTrackReference