네트워크 알림 OFF 및 ts 오류 수정

This commit is contained in:
hansoo
2025-03-21 17:09:26 +09:00
parent 3d246176ad
commit b3cc189493
6 changed files with 30 additions and 155 deletions

View File

@@ -12,7 +12,8 @@ import {
addToSyncQueue,
processPendingSyncQueue,
onNetworkStatusChange,
NetworkStatus
NetworkStatus,
RetryOptions
} from './networkUtils';
// Export all utility functions to maintain the same public API
@@ -80,6 +81,9 @@ export const initSyncState = async (): Promise<void> => {
// 온라인 상태로 변경되면 보류 중인 동기화 작업 처리
if (status === 'online') {
processPendingSyncQueue();
console.log('[네트워크 상태 변경] 온라인 상태로 변경되었습니다.');
} else {
console.log('[네트워크 상태 변경] 오프라인 상태로 변경되었습니다.');
}
});