From a488b1e099ba33df0702ec66f05ade9019a9d84d Mon Sep 17 00:00:00 2001 From: EunBae Gong Date: Wed, 31 Jan 2024 04:49:41 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=A9=94=EC=9D=B8=20=EB=B2=84=ED=8A=BC?= =?UTF-8?q?=20=EB=88=8C=EB=A0=80=EC=9D=84=20=EB=95=8C=20API=EB=A5=BC=20?= =?UTF-8?q?=EB=B6=88=EB=9F=AC=EC=98=A4=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/containers/MainContainer/MainContainer.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/containers/MainContainer/MainContainer.tsx b/src/components/containers/MainContainer/MainContainer.tsx index c6b7342..73464ed 100644 --- a/src/components/containers/MainContainer/MainContainer.tsx +++ b/src/components/containers/MainContainer/MainContainer.tsx @@ -2,13 +2,16 @@ import { useCallback } from 'react'; import MainPage from '../../pages/MainPage'; import TimelineView from '../../templates/TimelineView'; import useIsMainStore from '../../../store/isMain'; +import APIService from '../../../api'; const MainContainer = () => { const { isMain, setTimelinePage } = useIsMainStore(); - const setTimelineView = useCallback(() => { + const setTimelineView = useCallback(async () => { setTimelinePage(); // eslint-disable-next-line react-hooks/exhaustive-deps + const recapInfo = await APIService.getLibraryHistories(); + console.log(recapInfo); }, []); return isMain ? (