steep-balloon-41261
12/13/2023, 7:54 AMbroad-oil-45047
12/13/2023, 7:55 AMacoustic-engineer-41666
12/13/2023, 8:04 AMbroad-oil-45047
12/13/2023, 8:19 AMbroad-oil-45047
12/13/2023, 8:43 AMacoustic-engineer-41666
12/13/2023, 8:43 AMbroad-oil-45047
12/13/2023, 8:43 AMeager-zoo-16408
12/13/2023, 2:02 PMbroad-oil-45047
12/13/2023, 2:15 PMbroad-oil-45047
12/13/2023, 2:33 PMbroad-oil-45047
12/18/2023, 8:23 AMconst trackReference: TrackReferenceOrPlaceholder = React.useMemo(() => {
return {
participant: trackRef?.participant ?? maybeTrackRef?.participant ?? p,
source: trackRef?.source ?? maybeTrackRef?.source ?? source,
publication: trackRef?.publication ?? maybeTrackRef?.publication ?? publication,
};
}, [maybeTrackRef, p, publication, source, trackRef]);
...and used only:
const trackReference = const trackReference = trackRef || maybeTrackRef
And in FocusLayout, he passed trackRef={trackRef} directly as a prop.
Apparently the cause was some kind of context mixup. Here is his comment:
"This PR removes the TrackRefContextIfNeeded from the ParticipantTile component. ParticipantTile is intended to be used as a child of the TrackLoop component which already adds the TrackRefContext or by passing a track reference as a property." (We now do the latter.)
I'm not sure how this bug could exist only for us, since by default those parts are included in the standard components;
we've made minimal modifications. But in any case the fix works.