17 lines
488 B
TypeScript
Raw Normal View History

2025-08-05 12:35:40 +07:00
// Third-party Imports
import { configureStore } from '@reduxjs/toolkit'
2025-08-05 21:31:53 +07:00
import productReducer from '@/redux-store/slices/product'
2025-08-07 03:53:40 +07:00
import customerReducer from '@/redux-store/slices/customer'
2025-08-05 12:35:40 +07:00
export const store = configureStore({
reducer: {
2025-08-07 03:53:40 +07:00
productReducer,
customerReducer
2025-08-05 12:35:40 +07:00
},
middleware: getDefaultMiddleware => getDefaultMiddleware({ serializableCheck: false })
})
export type RootState = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch