diff --git a/src/store/apiStore.ts b/src/store/apiStore.ts index bb828dd..4e66840 100644 --- a/src/store/apiStore.ts +++ b/src/store/apiStore.ts @@ -51,6 +51,12 @@ export const useApiStore = defineStore('apiStore', { // Static data this.fetchDonatorsData(); this.fetchStationsGeneralInfo(); + + // Ponowne pobieranie danych po ServiceWorkerze + setTimeout(() => { + this.fetchStationsGeneralInfo(); + }, Math.floor(Math.random() * 500) + 1000); + this.fetchVehiclesInfo(); },