useMaybeTrackContext
Returns a track reference from the TrackContext
if it exists, otherwise undefined
.
Import
import { useMaybeTrackContext } from '@livekit/components-react';
Returns
TrackReferenceOrPlaceholder | undefined;
Returns a track reference from the TrackContext
if it exists, otherwise undefined
.
import { useMaybeTrackContext } from '@livekit/components-react';
TrackReferenceOrPlaceholder | undefined;
Previous
useMaybeRoomContextUp Next
useMediaDevices