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