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,25 +1,25 @@
# 🧭 gisSystemStaticSlice
<!-- /docs/redux/slices/webservice/gisSystemStaticSlice.md -->
Verwaltet statische GIS-Systemdaten (`Systems[]`), die vom Server zurückgegeben werden.
# 🧩 gisSystemStaticSlice.js
## 🔧 Pfad
`/redux/slices/webService/gisSystemStaticSlice.js`
Verwaltet statische Gerätedaten aller Systeme, die vom Webservice zurückgegeben werden.
## 📦 Initial State
## Zustand
```ts
```js
{
data: [], // enthält Systems[]
status: "idle", // Ladezustand
error: null
data: [],
status: "idle" | "loading" | "succeeded" | "failed",
error: string | null
}
```
## 🔁 Thunk: `fetchGisSystemStaticFromWebService`
## Thunk
Ruft `fetchGisSystemStatic()` auf und speichert nur das Feld `Systems` im Redux-State.
- `fetchGisSystemStaticThunk()`
## 🧩 Aktionen
## Selector
- `setGisSystemStatic(data)` → manuelles Setzen von `Systems[]`
- `fulfilled` → speichert Systems[]
```js
selectGisSystemStatic = (state) => state.gisSystemStatic.data
```