fix: call digitalOutputs from _app.tsx to show immediately without delay
This commit is contained in:
@@ -15,6 +15,7 @@ import Footer from "@/components/footer/Footer";
|
||||
// Thunks importieren
|
||||
import { getKueDataThunk } from "@/redux/thunks/getKueDataThunk";
|
||||
import { getAnalogInputsThunk } from "@/redux/thunks/getAnalogInputsThunk";
|
||||
import { getDigitalOutputsThunk } from "@/redux/thunks/getDigitalOutputsThunk";
|
||||
import { getAnalogInputsHistoryThunk } from "@/redux/thunks/getAnalogInputsHistoryThunk";
|
||||
import { getLast20MessagesThunk } from "@/redux/thunks/getLast20MessagesThunk";
|
||||
import { getOpcUaSettingsThunk } from "@/redux/thunks/getOpcUaSettingsThunk";
|
||||
@@ -83,6 +84,8 @@ function AppContent({
|
||||
dispatch(getKueDataThunk());
|
||||
} else if (pathname.includes("analogInputs")) {
|
||||
dispatch(getAnalogInputsThunk());
|
||||
} else if (pathname.includes("digitalOutputs")) {
|
||||
dispatch(getDigitalOutputsThunk());
|
||||
} else if (pathname.includes("analogHistory")) {
|
||||
dispatch(getAnalogInputsHistoryThunk());
|
||||
} else if (pathname.includes("dashboard")) {
|
||||
|
||||
Reference in New Issue
Block a user