Stockage de la géolocalisation en arrière-plan et utilisation sur la carte
This commit is contained in:
13
client/utils/store.ts
Normal file
13
client/utils/store.ts
Normal file
@ -0,0 +1,13 @@
|
||||
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
|
Reference in New Issue
Block a user