Files
nodeMap/docs/redux/thunks/database/locationDevice/fetchLocationDevicesThunk (1).md
2025-05-28 08:04:34 +02:00

673 B

🚚 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

createAsyncThunk("locationDevices/fetchAll", async () => {
  return await fetchLocationDevicesService();
});

Verwendung

dispatch(fetchLocationDevicesThunk());

📁 Pfad

/redux/thunks/database/locationDevice/fetchLocationDevicesThunk.js