api 공통 모듈생성

search, api 공통 모듈 생성
공통모듈 화면 별 반영
This commit is contained in:
2025-05-01 07:04:14 +09:00
parent f8d5b2197d
commit fa290b64ec
52 changed files with 3171 additions and 674 deletions

View File

@@ -15,7 +15,9 @@ const UserMyHomeInfo = ({ userInfo }) => {
const [loading, setLoading] = useState(true);
useEffect(() => {
fetchData();
if(userInfo && Object.keys(userInfo).length > 0) {
fetchData();
}
}, []);
const fetchData = async () => {