fix(voice): AudioRenderers re-renders on participant join
This commit is contained in:
@@ -58,6 +58,8 @@ function RemoteAudioTrack({ participant, room }: { participant: Participant; roo
|
||||
|
||||
export function AudioRenderers() {
|
||||
const room = useVoiceStore((s) => s._room);
|
||||
// @ts-ignore ponytail: subscribe to trigger re-render when remote users join/leave
|
||||
useVoiceStore((s) => s.participants); // @ts-ignore
|
||||
|
||||
if (!room) return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user