17 lines
505 B
TypeScript
17 lines
505 B
TypeScript
// store/store.ts
|
|
import { configureStore } from "@reduxjs/toolkit";
|
|
import rootReducer from "./rootReducer";
|
|
|
|
const store = configureStore({
|
|
reducer: rootReducer,
|
|
//devTools: process.env.NODE_ENV !== "production",
|
|
});
|
|
|
|
// Exportiere den Typ RootState für den gesamten State
|
|
export type RootState = ReturnType<typeof rootReducer>;
|
|
export type AppDispatch = typeof store.dispatch;
|
|
|
|
export default store;
|
|
|
|
//devTools: process.env.NODE_ENV !== "production", // Aktiviert DevTools nur in der Entwicklung
|