네트워크 알림 OFF 및 ts 오류 수정
This commit is contained in:
@@ -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('[네트워크 상태 변경] 오프라인 상태로 변경되었습니다.');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user