Skip to content

Commit 646316a

Browse files
committed
fix: 커뮤니티 게시물 조회 시 전역 스피너 비활성화
1 parent 16cf9f7 commit 646316a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/apis/community/getPostDetail.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const useGetPostDetail = (postId: number) => {
1212
queryKey: [CommunityQueryKeys.posts, postId],
1313
queryFn: () => communityApi.getPostDetail(postId),
1414
enabled: !!postId,
15+
meta: { showGlobalSpinner: false },
1516
});
1617
};
1718

src/components/layout/GlobalLayout/ui/ClientModal/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ const ClientModal = () => {
2323
checkAndOpen,
2424
} = useSurveyModalStore();
2525

26-
const isFetching = useIsFetching();
26+
const isFetching = useIsFetching({
27+
predicate: (query) => query.meta?.showGlobalSpinner !== false,
28+
});
2729

2830
// 페이지 로드 시 만족도 조사 모달 표시 여부 확인
2931
useEffect(() => {

0 commit comments

Comments
 (0)