[지라이슈없음] network status check (develop progress test 1)

This commit is contained in:
hyunwoo93.cha
2025-01-22 18:17:17 +09:00
parent 657f58d8b4
commit f00eed8a54
2 changed files with 12 additions and 5 deletions

View File

@@ -19,6 +19,7 @@ import {
changeAppStatus,
checkFirstLaunch,
deleteOldDb8Datas,
getConnectionStatus,
getDeviceId,
getHttpHeaderForServiceRequest,
getSystemSettings,
@@ -133,14 +134,9 @@ function AppBase(props) {
const oldDb8Deleted = useSelector(
(state) => state.localSettings.oldDb8Deleted
);
const isInternetConnected = useSelector(
(state) => state.common.appStatus.isInternetConnected
);
const deviceCountryCode = httpHeader?.["X-Device-Country"] || "";
useEffect(() => {});
useEffect(() => {
if (!cursorVisible && !Spotlight.getCurrent()) {
Spotlight.focus();
@@ -275,6 +271,7 @@ function AppBase(props) {
lunaTest(service, method, subscribe, parameters);
}
dispatch(getConnectionStatus());
dispatch(getDeviceId());
dispatch(getHttpHeaderForServiceRequest());
dispatch(getSystemSettings());

View File

@@ -153,6 +153,10 @@ export default function MainView({ className }) {
const skipEndOfServicePopup = useSelector(
(state) => state.localSettings.skipEndOfServicePopup
);
const isInternetConnected = useSelector(
(state) => state.common.appStatus.isInternetConnected
);
const deviceCountryCode = httpHeader?.["X-Device-Country"] || "";
const isLogSentRef = useRef(false);
@@ -629,6 +633,12 @@ export default function MainView({ className }) {
}
}, [dispatch, popupData]);
useEffect(() => {
if (!isInternetConnected) {
// TODO
}
}, [isInternetConnected]);
return (
<div
className={classNames(css.mainViewWrap, className)}