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