# đŸ§© locationDevicesSlice.js Redux-Slice zur Verwaltung von StandortgerĂ€ten (Devices) aus der Tabelle `location_device`. --- ## Zustand ```js { data: [], status: "idle" | "loading" | "succeeded" | "failed", error: string | null } ``` --- ## Thunks - `fetchLocationDevicesThunk`: LĂ€dt GerĂ€te aus der API --- ## Aktionen - `clearLocationDevices()`: Löscht GerĂ€te-Array und setzt Status zurĂŒck --- ## Selektoren ```js selectLocationDevices = (state) => state.locationDevices.data; selectLocationDeviceStatus = (state) => state.locationDevices.status; ``` --- ## Besonderheiten - Zustand wird bei `pending`, `fulfilled` und `rejected` aktualisiert - Fehlernachricht wird in `error` gespeichert