ParticipantContextIfNeeded
The ParticipantContextIfNeeded component only creates a ParticipantContext if there is no ParticipantContext already.
Import
import { ParticipantContextIfNeeded } from "@livekit/components-react";
Usage
<ParticipantContextIfNeeded participant={trackReference.participant}>...</ParticipantContextIfNeeded>