fix(PageComponent): add flow and flow.data as dependencies to useEffect to ensure proper cleanup and prevent memory leaks

This commit is contained in:
anovazzi1 2023-12-11 16:48:14 -03:00
commit 002b8667a8

View file

@ -208,7 +208,7 @@ export default function Page({
return () => {
clearInterval(interval);
};
}, []);
}, [flow, flow.data]);
const onEdgesChangeMod = useCallback(
(change: EdgeChange[]) => {