feat: enhance configuration fetching and implement retry logic for API requests
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ interface AppConfig extends ConfigData {
|
||||
let configCache: ConfigData | null = null;
|
||||
let configPromise: Promise<ConfigData> | null = null;
|
||||
|
||||
async function fetchConfig(): Promise<ConfigData> {
|
||||
export async function fetchConfig(): Promise<ConfigData> {
|
||||
// Return cached config if available
|
||||
if (configCache) {
|
||||
return configCache;
|
||||
|
||||
Reference in New Issue
Block a user