You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
pizza.krasnikov.pro/.history/redux/store_20220724214407.ts

19 lines
689 B

import { configureStore } from '@reduxjs/toolkit';
//import filter from './filter/slice';
import token from './login/slice';
import stoke from './stoke/slice';
import categories from './categories/slice'
import pizza from './pizza/slice';
import pizzaToCard from './pizzaToCart/slice';
import cartItem from '../components/customer/pages/index/modals/cart/redux/slice'
import { useDispatch } from 'react-redux';
export const store = configureStore({
reducer: {stoke, token, categories, pizza, pizzaToCard, cartItem},
})
export type RootState = ReturnType<typeof store.getState>;
type AppDispatch = typeof store.dispatch;
export const useAppDispatch = () => useDispatch<AppDispatch>();