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:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user