Skip to content

Commit 39dfd9f

Browse files
authored
Merge pull request #394 from Podo-Store/feat/skeleton-ui
feat: 스켈레톤 표시 개선 및 데이터 캐싱 로직 개선
2 parents 5993469 + 637d936 commit 39dfd9f

File tree

2 files changed

+310
-210
lines changed

2 files changed

+310
-210
lines changed

src/api/user/postListApi.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,14 @@ export const fetchExploreScripts = async (
4343

4444
const response = await api.get<ExploreScriptsResponse>("/scripts", {
4545
headers,
46-
withCredentials: true, // 쿠키 인증 시 필요
46+
withCredentials: true,
4747
params: {
4848
sortType,
4949
},
5050
});
5151

5252
const { longPlay, shortPlay } = response.data;
53+
5354
return {
5455
longPlay: Array.isArray(longPlay) ? longPlay : [],
5556
shortPlay: Array.isArray(shortPlay) ? shortPlay : [],
@@ -60,7 +61,6 @@ export const fetchExploreScripts = async (
6061
}
6162
};
6263

63-
// 좋아한 장편 작품 목록 조회
6464
export const getLongWorks = async (
6565
page: number = 0,
6666
accessToken?: string,
@@ -85,7 +85,6 @@ export const getLongWorks = async (
8585
}
8686
};
8787

88-
// 좋아한 장편 작품 목록 조회
8988
export const getShortWorks = async (
9089
page: number = 0,
9190
accessToken?: string,

0 commit comments

Comments
 (0)