Skip to content

Commit 9bcf451

Browse files
committed
fix: remove unused useMemo dependency
1 parent 8fff851 commit 9bcf451

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react/src/hooks/useSession.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ export function useSession(
386386
participant: localParticipant,
387387
publication: cameraPublication,
388388
};
389-
}, [localParticipant, cameraPublication, cameraPublication?.isMuted]);
389+
}, [localParticipant, cameraPublication]);
390390
const microphonePublication = localParticipant.getTrackPublication(Track.Source.Microphone);
391391
const localMicrophone = React.useMemo(() => {
392392
if (!microphonePublication) {
@@ -397,7 +397,7 @@ export function useSession(
397397
participant: localParticipant,
398398
publication: microphonePublication,
399399
};
400-
}, [localParticipant, microphonePublication, microphonePublication?.isMuted]);
400+
}, [localParticipant, microphonePublication]);
401401
const screenSharePublication = localParticipant.getTrackPublication(Track.Source.ScreenShare);
402402
const localScreenShare = React.useMemo(() => {
403403
if (!screenSharePublication) {
@@ -408,7 +408,7 @@ export function useSession(
408408
participant: localParticipant,
409409
publication: screenSharePublication,
410410
};
411-
}, [localParticipant, screenSharePublication, screenSharePublication?.isMuted]);
411+
}, [localParticipant, screenSharePublication]);
412412

413413
const {
414414
agentTimeoutFailureReason,

0 commit comments

Comments
 (0)