Skip to content

Commit

Permalink
Fix: 새로고침 데이터 변경 안되는 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
goeun208 committed Mar 15, 2024
1 parent b3fe78a commit 5720cef
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/hooks/useGetGroupBestRegion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@ import { useQuery } from '@tanstack/react-query';
import { GetGroupBestRegionListRes } from '@/types/SpaceType';
import { getGroupBestRegion } from '@/apis/getGroupBestRegion';
export const useGetGroupBestRegion = (groupId: number) => {
return useQuery<GetGroupBestRegionListRes>(['useGetGroupBestRegion'], () => getGroupBestRegion(groupId), {
staleTime: 300 * 1000,
});
return useQuery<GetGroupBestRegionListRes>(['useGetGroupBestRegion'], () => getGroupBestRegion(groupId));
};

0 comments on commit 5720cef

Please sign in to comment.