505 B
505 B
🧩 locationDevicesFromDBSlice.js
Redux-Slice für das Laden von Geräten aus der Datenbank-Tabelle location_device.
Zustand
{
devices: [],
status: "idle" | "loading" | "succeeded" | "failed",
error: string | null
}
Thunk
fetchLocationDevicesThunk(async)
Selector
selectLocationDevices = state => state.locationDevicesFromDB.devices;