This commit is contained in:
ISA
2025-05-28 08:04:34 +02:00
parent 97fbb6fdc1
commit 5f0133d638
107 changed files with 1446 additions and 454 deletions

View File

@@ -0,0 +1,37 @@
<!-- /docs/redux/thunks/database/locationDevice/fetchLocationDevicesThunk.md -->
# 🚚 fetchLocationDevicesThunk.js
Redux-AsyncThunk zum Abrufen aller Einträge aus der Tabelle `location_device`.
---
## 🔄 Zweck
Dieser Thunk ruft die Servicefunktion `fetchLocationDevicesService()` auf und liefert deren Ergebnis an den Redux-Slice `locationDevicesSlice`.
---
## 🧠 Intern
```ts
createAsyncThunk("locationDevices/fetchAll", async () => {
return await fetchLocationDevicesService();
});
```
---
## ✅ Verwendung
```ts
dispatch(fetchLocationDevicesThunk());
```
---
## 📁 Pfad
```
/redux/thunks/database/locationDevice/fetchLocationDevicesThunk.js
```