Stockage de la géolocalisation en arrière-plan et utilisation sur la carte

This commit is contained in:
2024-12-06 21:49:28 +01:00
parent 91963e378d
commit d08dcb9720
11 changed files with 257 additions and 97 deletions

13
client/utils/store.ts Normal file
View 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