GitHub

Source

useMaybeTrackContext

caution:

This API is deprecated:

useMaybeTrackContext has been renamed to useMaybeTrackRefContext, use this as a drop in replacement.

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

Import

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

Returns

TrackReferenceOrPlaceholder | undefined;