This commit is contained in:
ISA
2025-05-28 08:04:34 +02:00
parent 97fbb6fdc1
commit 5f0133d638
107 changed files with 1446 additions and 454 deletions

View File

@@ -1,18 +1,20 @@
# 🌐 urlParameterSlice
<!-- /docs/redux/slices/ui/urlParameterSlice.md -->
Verwaltet `mapId` und `userId`, die aus der URL gelesen werden.
# 🔗 urlParameterSlice.js
## 🔧 Zustand
Verwaltet die URL-Parameter `m` (mapId) und `u` (userId).
```ts
## Zustand
```js
{
mapId: null | string,
userId: null | string
mapId: number | null,
userId: number | null
}
```
## 🎯 Aktionen
## Aktionen
- `setMapId(id)`
- `setUserId(id)`
- `setFromURL({ m, u })` gleichzeitig beide setzen aus URL-Params
- `setFromURL({ m, u })`