Make response data refresh interval configurable
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user