GitHub

Source

useMaybeTrackRefContext

Returns a track reference from the TrackRefContext if it exists, otherwise undefined.

Import

import { useMaybeTrackRefContext } from "@livekit/components-react";

Returns

TrackReferenceOrPlaceholder | undefined;