알림목록 오류 수정
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user