404에러 패치

This commit is contained in:
Macbook
2026-06-01 02:12:55 +09:00
parent 6d28018a2a
commit aa79be196a
5 changed files with 238 additions and 18 deletions
+9
View File
@@ -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();