mirror of
https://github.com/Sea-Haven-Industries/proposal-system.git
synced 2026-10-03 22:23:17 +00:00
20 lines
504 B
TypeScript
20 lines
504 B
TypeScript
|
|
import { configureStore } from '@reduxjs/toolkit';
|
||
|
|
import authReducer from './slices/authSlice';
|
||
|
|
import uiReducer from './slices/uiSlice';
|
||
|
|
|
||
|
|
export const store = configureStore({
|
||
|
|
reducer: {
|
||
|
|
auth: authReducer,
|
||
|
|
ui: uiReducer,
|
||
|
|
},
|
||
|
|
middleware: (getDefaultMiddleware) =>
|
||
|
|
getDefaultMiddleware({
|
||
|
|
serializableCheck: {
|
||
|
|
ignoredActions: ['auth/setUser'],
|
||
|
|
},
|
||
|
|
}),
|
||
|
|
});
|
||
|
|
|
||
|
|
export type RootState = ReturnType<typeof store.getState>;
|
||
|
|
export type AppDispatch = typeof store.dispatch;
|