git commit -m "refactor: last20Messages aus _app.tsx entfernt und über Thunk in dashboard.tsx geladen"
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user