fix(PageComponent): add flow and flow.data as dependencies to useEffect to ensure proper cleanup and prevent memory leaks
This commit is contained in:
parent
aec93df799
commit
002b8667a8
1 changed files with 1 additions and 1 deletions
|
|
@ -208,7 +208,7 @@ export default function Page({
|
|||
return () => {
|
||||
clearInterval(interval);
|
||||
};
|
||||
}, []);
|
||||
}, [flow, flow.data]);
|
||||
|
||||
const onEdgesChangeMod = useCallback(
|
||||
(change: EdgeChange[]) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue