git commit -m "refactor: last20Messages aus _app.tsx entfernt und über Thunk in dashboard.tsx geladen"

This commit is contained in:
ISA
2025-03-25 09:34:19 +01:00
parent 8e6b26dff9
commit b536d31e48
5 changed files with 35 additions and 11 deletions

View File

@@ -12,11 +12,6 @@ import WindowVariablesInitializer from "../components/WindowVariablesInitializer
import "../styles/globals.css";
import { AppProps } from "next/app";
import { setVariables } from "../redux/slices/variablesSlice";
import {
setOpcUaZustand,
setOpcUaActiveClientCount,
setOpcUaNodesetName,
} from "../redux/slices/opcuaSettingsSlice";
function MyApp({ Component, pageProps }: AppProps) {
return (
@@ -39,7 +34,6 @@ function AppContent({ Component, pageProps }: AppProps) {
//console.log("✅ Window-Variablen geladen:", variables);
const {
last20Messages,
opcUaZustand,
opcUaActiveClientCount,
opcUaNodesetName,
@@ -57,10 +51,6 @@ function AppContent({ Component, pageProps }: AppProps) {
...restVariables
} = variables;
dispatch(setOpcUaZustand(opcUaZustand || "Offline"));
dispatch(setOpcUaActiveClientCount(opcUaActiveClientCount || 0));
dispatch(setOpcUaNodesetName(opcUaNodesetName || "DefaultNodeset"));
dispatch(setVariables(restVariables));
setSessionExpired(false);