404에러 패치
This commit is contained in:
@@ -27,7 +27,9 @@
|
||||
|
||||
import { useCallback, useEffect, useRef, useState } from 'react';
|
||||
import {
|
||||
hasRegisteredUser,
|
||||
loadAppSettings,
|
||||
loadStrategies,
|
||||
saveAppSettings,
|
||||
type AppSettingsDto,
|
||||
} from '../utils/backendApi';
|
||||
@@ -106,6 +108,13 @@ function ensureLoaded(): Promise<AppSettingsDto> {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (hasRegisteredUser()) {
|
||||
try {
|
||||
await loadStrategies();
|
||||
} catch (e) {
|
||||
console.warn('[useAppSettings] strategies preload failed', e);
|
||||
}
|
||||
}
|
||||
_loadPromise = null;
|
||||
if (generation === _loadGeneration) {
|
||||
notifyAppSettingsListeners();
|
||||
|
||||
Reference in New Issue
Block a user