19 lines
584 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-07 14:31:42 +07:00
import paymentMethodReducer from '@/redux-store/slices/paymentMethod'
2025-08-05 12:35:40 +07:00
export const store = configureStore({
reducer: {
2025-08-07 03:53:40 +07:00
productReducer,
2025-08-07 14:31:42 +07:00
customerReducer,
paymentMethodReducer
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