19 lines
552 B
TypeScript
19 lines
552 B
TypeScript
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<typeof store.getState>;
|
|
export type AppDispatch = typeof store.dispatch; |