useMaybeTrackRefContext
Returns a track reference from the TrackRefContext
if it exists, otherwise undefined
.
Import
import { useMaybeTrackRefContext } from "@livekit/components-react";
Returns
TrackReferenceOrPlaceholder | undefined;
Source
Returns a track reference from the TrackRefContext
if it exists, otherwise undefined
.
import { useMaybeTrackRefContext } from "@livekit/components-react";
TrackReferenceOrPlaceholder | undefined;