Fix dependency array

This commit is contained in:
Gigiaj 2025-05-26 23:12:14 -05:00
parent c99112b78b
commit 3e6d55f03b

View file

@ -254,18 +254,7 @@ export function CallProvider({ children }: CallProviderProps) {
logger.debug(`CallContext: Hang up called.`);
activeClientWidgetApi?.transport.send(`${WIDGET_HANGUP_ACTION}`, {});
},
[
activeCallRoomId,
activeClientWidgetApi?.transport,
isCallActive,
isPrimaryIframe,
lastViewedRoomDuringCall,
setActiveClientWidgetApi,
setViewedCallRoomId,
shouldFlipIframe,
viewedCallRoomId,
viewedRoomId,
]
[activeCallRoomId, activeClientWidgetApi?.transport, isCallActive, isPrimaryIframe, lastViewedRoomDuringCall, setActiveClientWidgetApi, setViewedCallRoomId, shouldFlipIframe, viewedCallRoomId]
);
useEffect(() => {