From 44cddc8c592d9c5ee52765fb60e1bf4a78dbe546 Mon Sep 17 00:00:00 2001 From: Kimberlee Johnson Date: Thu, 23 Sep 2021 15:11:16 -0700 Subject: [PATCH] Updated createAndJoinCall with dependencies matching other demos --- prebuilt/basic-embed/components/Call.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prebuilt/basic-embed/components/Call.js b/prebuilt/basic-embed/components/Call.js index 9c46762..6a126f5 100644 --- a/prebuilt/basic-embed/components/Call.js +++ b/prebuilt/basic-embed/components/Call.js @@ -51,7 +51,7 @@ export const Call = ({ room, setRoom, callFrame, setCallFrame, expiry }) => { }; newCallFrame.on('left-meeting', leaveCall); - }); + }, [room, setCallFrame]); /** * Initiate Daily iframe creation on component render if it doesn't already exist