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.
20 lines
521 B
20 lines
521 B
import { configureStore } from '@reduxjs/toolkit';
|
|
//import filter from './filter/slice';
|
|
//import cart from './cart/slice';
|
|
//import pizza from './pizza/slice';
|
|
import { useDispatch } from 'react-redux';
|
|
import { configureStore } from '@reduxjs/toolkit'
|
|
|
|
export const store = configureStore({
|
|
reducer: {
|
|
// filter,
|
|
// cart,
|
|
pizza,
|
|
},
|
|
});
|
|
|
|
export type RootState = ReturnType<typeof store.getState>;
|
|
|
|
type AppDispatch = typeof store.dispatch;
|
|
|
|
export const useAppDispatch = () => useDispatch<AppDispatch>();
|
|
|