22 lines
643 B
TypeScript
22 lines
643 B
TypeScript
|
|
// Third-party Imports
|
||
|
|
import { configureStore } from '@reduxjs/toolkit'
|
||
|
|
|
||
|
|
// Slice Imports
|
||
|
|
import chatReducer from '@/redux-store/slices/chat'
|
||
|
|
import calendarReducer from '@/redux-store/slices/calendar'
|
||
|
|
import kanbanReducer from '@/redux-store/slices/kanban'
|
||
|
|
import emailReducer from '@/redux-store/slices/email'
|
||
|
|
|
||
|
|
export const store = configureStore({
|
||
|
|
reducer: {
|
||
|
|
chatReducer,
|
||
|
|
calendarReducer,
|
||
|
|
kanbanReducer,
|
||
|
|
emailReducer
|
||
|
|
},
|
||
|
|
middleware: getDefaultMiddleware => getDefaultMiddleware({ serializableCheck: false })
|
||
|
|
})
|
||
|
|
|
||
|
|
export type RootState = ReturnType<typeof store.getState>
|
||
|
|
export type AppDispatch = typeof store.dispatch
|