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