알림목록 오류 수정

This commit is contained in:
Macbook
2026-06-11 00:30:19 +09:00
parent 54fdc3e77a
commit e9d83f2058
2 changed files with 25 additions and 10 deletions
@@ -9,6 +9,7 @@ import {
resolveNotificationStrategy,
normalizeStrategyId,
} from '../utils/resolveNotificationStrategy';
import { isStrategyMissingOnServer } from '../utils/strategyMissingCache';
import { hydrateStrategyDto, normalizeMarketCode } from '../utils/strategyHydrate';
import {
fetchLiveSnapshot,
@@ -61,6 +62,12 @@ export function useTradeNotificationSignalSnapshot(
emptyRetryRef.current = 0;
return;
}
// 서버에 없는 것으로 확인된 전략은 재요청하지 않음
if (isStrategyMissingOnServer(rawId)) {
setSnapshot(undefined);
setLoading(false);
return;
}
if (refreshInFlightRef.current) return;
const gen = ++genRef.current;