diff --git a/src/apis/community/getPostDetail.ts b/src/apis/community/getPostDetail.ts index 034c33af..a44b31f7 100644 --- a/src/apis/community/getPostDetail.ts +++ b/src/apis/community/getPostDetail.ts @@ -12,6 +12,7 @@ const useGetPostDetail = (postId: number) => { queryKey: [CommunityQueryKeys.posts, postId], queryFn: () => communityApi.getPostDetail(postId), enabled: !!postId, + meta: { showGlobalSpinner: false }, }); }; diff --git a/src/components/layout/GlobalLayout/ui/ClientModal/index.tsx b/src/components/layout/GlobalLayout/ui/ClientModal/index.tsx index 92ade71c..6ea75f7d 100644 --- a/src/components/layout/GlobalLayout/ui/ClientModal/index.tsx +++ b/src/components/layout/GlobalLayout/ui/ClientModal/index.tsx @@ -23,7 +23,9 @@ const ClientModal = () => { checkAndOpen, } = useSurveyModalStore(); - const isFetching = useIsFetching(); + const isFetching = useIsFetching({ + predicate: (query) => query.meta?.showGlobalSpinner !== false, + }); // 페이지 로드 시 만족도 조사 모달 표시 여부 확인 useEffect(() => {