Skip to content

Commit

Permalink
feat: 일부 주석처리
Browse files Browse the repository at this point in the history
  • Loading branch information
eunbae0 committed Jan 30, 2024
1 parent a488b1e commit aa51f06
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/hooks/useInitApp.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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();
})();
}, []);
};
Expand Down

0 comments on commit aa51f06

Please sign in to comment.