Skip to content

Self-hosted homelab infrastructure visualizer — interactive network diagram with live status monitoring

fix: add setCustomStyle to useEffect dependency array

Pouzor31b61904ac14
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index fe8a255..477f2e4 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -119,7 +119,7 @@ export default function App() {
}
})
.catch(() => loadCanvas(demoNodes, demoEdges))
- }, [isAuthenticated, loadCanvas, setTheme])
+ }, [isAuthenticated, loadCanvas, setTheme, setCustomStyle])
// Keep refs for store actions so keydown handler is always up-to-date without re-registering
const undoRef = useRef(undo)