Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Commit fb502a6

Browse files
committed
Try with no dependencies
1 parent e456782 commit fb502a6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/hooks/useCall.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,10 @@ export const useConnectionState = (call: Call | null): ConnectionState =>
4242
);
4343

4444
export const useParticipants = (call: Call | null): Map<RoomMember, Set<string>> => {
45-
const participants = call?.participants;
4645
return useTypedEventEmitterState(
4746
call ?? undefined,
4847
CallEvent.Participants,
49-
useCallback((state) => state ?? participants ?? new Map(), [participants]),
48+
useCallback((state) => state ?? call?.participants ?? new Map(), []),
5049
);
5150
};
5251

0 commit comments

Comments
 (0)