feat: pass socket & workflowHandler in dependency array

This commit is contained in:
karishmas6
2024-10-08 18:06:25 +05:30
parent 8e07de54e7
commit 2e15c8eb44

View File

@@ -78,7 +78,7 @@ export const RightSidePanel: React.FC<RightSidePanelProps> = ({ onFinishCapture
socket?.off("workflow", workflowHandler);
clearInterval(interval);
};
}, [id]);
}, [id, socket, workflowHandler]);
useEffect(() => {
if (socket) {