git commit -m "fix: Redux TypeScript Fehler behoben & automatische Mock-Daten Aktualisierung
- useAppDispatch in store.ts hinzugefügt, um AsyncThunkActions korrekt zu dispatchen - TypeScript-Fehler in useFetchAnalogeEingaenge.ts behoben - loadFromWindow wird jetzt regelmäßig neu geladen, um Änderungen in Mock-Daten zu übernehmen - UI aktualisiert sich automatisch, wenn sich Werte in ae.js ändern - Code-Struktur verbessert & Redux-Integration optimiert Test erfolgreich: Änderungen in ae.js werden nun direkt in der UI sichtbar!"
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// redux/store.ts
|
||||
import { configureStore } from "@reduxjs/toolkit";
|
||||
import { useDispatch } from "react-redux";
|
||||
import authReducer from "./slices/authSlice";
|
||||
import variablesReducer from "./slices/variablesSlice";
|
||||
import kueChartModeReducer from "./slices/kueChartModeSlice";
|
||||
@@ -30,5 +30,6 @@ const store = configureStore({
|
||||
|
||||
export type RootState = ReturnType<typeof store.getState>;
|
||||
export type AppDispatch = typeof store.dispatch;
|
||||
export const useAppDispatch: () => AppDispatch = useDispatch; // ✅ Typisierte Dispatch-Funktion
|
||||
|
||||
export default store;
|
||||
|
||||
Reference in New Issue
Block a user