import { configureStore } from "@reduxjs/toolkit"; import authReducer from "../features/auth/authSlice"; import dashboardReducer from '../features/dashboard/dashboardSlice' export const store = configureStore({ reducer: { auth: authReducer, dashboard: dashboardReducer, }, middleware: (getDefaultMiddleware) => getDefaultMiddleware({ serializableCheck: { ignoredActions: ['persist/PERSIST'], }, }), }); export type RootState = ReturnType; export type AppDispatch = typeof store.dispatch;