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 882ab69 commit 9422faa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/main/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Main = ({ id }: MainProps) => {

const [lat, setLat] = useState<number>(0);
const [lng, setLng] = useState<number>(0);
const [local, setLocal] = useState<any>('');
const [local, setLocal] = useState<any>(null);
const [userPath, setUserPath] = useState<any>([]);
const [otherUserPath, setOtherUserPath] = useState<any>([]);

Expand Down
5 changes: 4 additions & 1 deletion src/hooks/useGetGroupBestRegionPlace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ import { useQuery } from '@tanstack/react-query';

export const useGetGroupBestRegionPlace = (x: string, y: string, local: string, keyword: KeywordType) => {
return useQuery<GetGroupBestRegionPlaceRes>(
['useGetGroupBestRegionPlace', keyword],
['useGetGroupBestRegionPlace', local],
() => getGroupBestRegionPlace(x, y, local, keyword),
{
enabled: !!local,
},
// {
// staleTime: 300 * 1000,
// },
Expand Down

0 comments on commit 9422faa

Please sign in to comment.