13 lines
326 B
TypeScript
13 lines
326 B
TypeScript
import { configureStore } from '@reduxjs/toolkit'
|
|
import locationReducer from './features/location/locationSlice'
|
|
|
|
const store = configureStore({
|
|
reducer: {
|
|
location: locationReducer,
|
|
},
|
|
})
|
|
|
|
export default store
|
|
|
|
export type RootState = ReturnType<typeof store.getState>
|
|
export type AppDispatch = typeof store.dispatch |