From aa51f069d90e4e57c4d78725a6b81302a84c42bc Mon Sep 17 00:00:00 2001 From: EunBae Gong Date: Wed, 31 Jan 2024 04:51:58 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=9D=BC=EB=B6=80=20=EC=A3=BC=EC=84=9D?= =?UTF-8?q?=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/useInitApp.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/hooks/useInitApp.ts b/src/hooks/useInitApp.ts index 8000c17..41cdefc 100644 --- a/src/hooks/useInitApp.ts +++ b/src/hooks/useInitApp.ts @@ -1,12 +1,12 @@ import { useEffect } from 'react'; import uoslifeBridge from '../bridge'; import useUserStore from '../store/user'; -import APIService from '../api/service'; -import useRecapInfoStore from '../store/recapInfo'; +// import APIService from '../api/service'; +// import useRecapInfoStore from '../store/recapInfo'; const useInitApp = () => { const { setUser, setDefaultUser } = useUserStore(); - const { setRecapInfo } = useRecapInfoStore(); + // const { setRecapInfo } = useRecapInfoStore(); const handleUserInfo = async () => { try { @@ -16,19 +16,19 @@ const useInitApp = () => { setDefaultUser(); } }; - const handleRecapInfo = async () => { - try { - const recapInfo = await APIService.getLibraryHistories(); - setRecapInfo(recapInfo); - } catch (e) { - console.error(e); - } - }; + // const handleRecapInfo = async () => { + // try { + // const recapInfo = await APIService.getLibraryHistories(); + // setRecapInfo(recapInfo); + // } catch (e) { + // console.error(e); + // } + // }; useEffect(() => { (async () => { handleUserInfo(); - handleRecapInfo(); + // handleRecapInfo(); })(); }, []); };