31 lines
1.1 KiB
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-08 17:59:39 +07:00
import ingredientReducer from '@/redux-store/slices/ingredient'
2025-08-10 15:47:04 +07:00
import orderReducer from '@/redux-store/slices/order'
2025-08-11 13:48:24 +07:00
import productRecipeReducer from '@/redux-store/slices/productRecipe'
2025-08-12 21:29:24 +07:00
import organizationReducer from '@/redux-store/slices/organization'
import userReducer from '@/redux-store/slices/user'
2025-09-12 14:02:57 +07:00
import vendorReducer from '@/redux-store/slices/vendor'
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,
2025-08-08 17:59:39 +07:00
paymentMethodReducer,
2025-08-10 15:47:04 +07:00
ingredientReducer,
2025-08-11 13:48:24 +07:00
orderReducer,
2025-08-12 21:29:24 +07:00
productRecipeReducer,
organizationReducer,
2025-09-12 14:02:57 +07:00
userReducer,
vendorReducer
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