refactor: lade OPC UA Daten direkt in NetworkInfo-Komponente statt global in _app.tsx

- Thunk `fetchOpcUaSettingsThunk` wird jetzt nur bei Anzeige von NetworkInfo ausgeführt
- Reduzierte Netzwerklast und bessere Trennung von Zuständigkeiten
- Entfernt globalen OPC UA-Aufruf aus _app.tsx
This commit is contained in:
ISA
2025-03-26 10:45:00 +01:00
parent 0bbc2a25a6
commit 7b85ebc730
9 changed files with 59 additions and 100 deletions

View File

@@ -34,9 +34,6 @@ function AppContent({ Component, pageProps }: AppProps) {
//console.log("✅ Window-Variablen geladen:", variables);
const {
opcUaZustand,
opcUaActiveClientCount,
opcUaNodesetName,
deviceName,
mac1,
ip,
@@ -67,6 +64,7 @@ function AppContent({ Component, pageProps }: AppProps) {
return () => clearInterval(intervalId);
}
}, []);
//---------------------------------------------------------
return (