Fix #769: Resolve all react-hooks/set-state-in-effect lint errors project-wide

This commit is contained in:
Sameer6305
2026-07-24 20:56:11 +05:30
parent adb46134c4
commit 343d2bc418
12 changed files with 298 additions and 90 deletions
@@ -369,7 +369,9 @@ export function GraphWorkspaceShell() {
}
}, []);
useEffect(() => {
const [prevFetchedAt, setPrevFetchedAt] = useState(snapshot?.fetchedAt);
if (snapshot?.fetchedAt !== prevFetchedAt) {
setPrevFetchedAt(snapshot?.fetchedAt);
if (snapshot) {
setIsGraphStageReady(false);
setActiveNodeCount(null);
@@ -383,7 +385,7 @@ export function GraphWorkspaceShell() {
stableSamples: 0,
});
}
}, [snapshot?.fetchedAt]);
}
useEffect(() => {
let cancelled = false;