Try with no dependencies

This commit is contained in:
David Langley 2025-08-27 20:00:33 +01:00
parent e456782efd
commit fb502a68a0

View File

@ -42,11 +42,10 @@ export const useConnectionState = (call: Call | null): ConnectionState =>
);
export const useParticipants = (call: Call | null): Map<RoomMember, Set<string>> => {
const participants = call?.participants;
return useTypedEventEmitterState(
call ?? undefined,
CallEvent.Participants,
useCallback((state) => state ?? participants ?? new Map(), [participants]),
useCallback((state) => state ?? call?.participants ?? new Map(), []),
);
};