Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/apis/community/getPostDetail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const useGetPostDetail = (postId: number) => {
queryKey: [CommunityQueryKeys.posts, postId],
queryFn: () => communityApi.getPostDetail(postId),
enabled: !!postId,
meta: { showGlobalSpinner: false },
});
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ const ClientModal = () => {
checkAndOpen,
} = useSurveyModalStore();

const isFetching = useIsFetching();
const isFetching = useIsFetching({
predicate: (query) => query.meta?.showGlobalSpinner !== false,
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오 너무 좋아요
앞으로도 이걸로 전역 스피너 불필요시 안쓰면 되겠네요
LGTM~~!


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