docs
This commit is contained in:
@@ -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 })`
|
||||
Reference in New Issue
Block a user