Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { combineReducers } from 'redux-starter-kit';
import cart from './cart';
import product from './product';
import products from './products';
export const rootReducer = combineReducers({
cart,
product,
products,
});
import { combineReducers, configureStore, Store } from 'redux-starter-kit';
import checkout from './checkout.slice';
import product from './product.slice';
import products from './products.slice';
export const actions = {
checkout: checkout.actions,
product: product.actions,
products: products.actions
};
const rootReducer = combineReducers({
checkout: checkout.reducer,
product: product.reducer,
products: products.reducer
});
export function createStore(initialState = {}): Store {
return configureStore({
reducer: rootReducer,
preloadedState: initialState
});
}