Skip to content

Commit

Permalink
update effect dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasIO committed Nov 21, 2024
1 parent 7ecc711 commit 70af0d2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/react/src/hooks/useLiveKitRoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,17 @@ export function useLiveKitRoom<T extends HTMLElement>(
.off(RoomEvent.Disconnected, handleDisconnected)
.off(RoomEvent.Connected, handleConnected);
};
}, [room, audio, video, screen, onError, onEncryptionError, onMediaDeviceFailure]);
}, [
room,
audio,
video,
screen,
onError,
onEncryptionError,
onMediaDeviceFailure,
onConnected,
onDisconnected,
]);

React.useEffect(() => {
if (!room) return;
Expand Down

0 comments on commit 70af0d2

Please sign in to comment.