30 lines
505 B
Markdown
30 lines
505 B
Markdown
<!-- /docs/redux/slices/database/locationDevicesFromDBSlice.md -->
|
|
|
|
# 🧩 locationDevicesFromDBSlice.js
|
|
|
|
Redux-Slice für das Laden von Geräten aus der Datenbank-Tabelle `location_device`.
|
|
|
|
## Zustand
|
|
|
|
```js
|
|
{
|
|
devices: [],
|
|
status: "idle" | "loading" | "succeeded" | "failed",
|
|
error: string | null
|
|
}
|
|
```
|
|
|
|
## Thunk
|
|
|
|
- `fetchLocationDevicesThunk` (async)
|
|
|
|
## Selector
|
|
|
|
```js
|
|
selectLocationDevices = state => state.locationDevicesFromDB.devices;
|
|
```
|
|
|
|
---
|
|
|
|
[Zurück zur Übersicht](../../../README.md)
|