Make response data refresh interval configurable

This commit is contained in:
Adrian Rumpold
2025-07-10 12:35:05 +02:00
parent 176f68e32d
commit 5151fd8b73
3 changed files with 4 additions and 5 deletions

View File

@@ -22,8 +22,5 @@ export async function getSampleData(): Promise<ResponseData[]> {
});
});
}
// Simulate a delay to mimic fetching actual data
return new Promise<ResponseData[]>((resolve) => {
setTimeout(() => resolve(sampleData), 500);
});
return Promise.resolve(sampleData);
}