docs
This commit is contained in:
@@ -1,26 +1,25 @@
|
||||
# 📈 gisStationsMeasurementsSlice
|
||||
<!-- /docs/redux/slices/webservice/gisStationsMeasurementsSlice.md -->
|
||||
|
||||
Verwaltet Messdaten für GIS-Stationen, z. B. Spannungen, Strom, Sensorwerte etc.
|
||||
# 🧩 gisStationsMeasurementsSlice.js
|
||||
|
||||
## 🔧 Pfad
|
||||
`/redux/slices/webService/gisStationsMeasurementsSlice.js`
|
||||
Verwaltet Messwerte einzelner Stationen (z. B. Schleifenwiderstand, Isolation) aus Webservice-Antworten.
|
||||
|
||||
## 📦 Initial State
|
||||
## Zustand
|
||||
|
||||
```ts
|
||||
```js
|
||||
{
|
||||
data: [],
|
||||
status: "idle",
|
||||
error: null
|
||||
status: "idle" | "loading" | "succeeded" | "failed",
|
||||
error: string | null
|
||||
}
|
||||
```
|
||||
|
||||
## 🔁 Thunk: `fetchGisStationsMeasurementsFromWebService`
|
||||
## Thunk
|
||||
|
||||
Verwendet `fetchGisStationsMeasurements()` als API-Quelle.
|
||||
- `fetchGisStationsMeasurementsThunk()`
|
||||
|
||||
## 📊 Selector
|
||||
## Selector
|
||||
|
||||
```ts
|
||||
selectGisStationsMeasurements = (state) => state.gisStationsMeasurements.data;
|
||||
```js
|
||||
selectGisStationsMeasurements = (state) => state.gisStationsMeasurements.data
|
||||
```
|
||||
Reference in New Issue
Block a user