Skip to content

Commit

Permalink
merge-fe: 로그인 버그 수정 10.25 (v2.2.1)
Browse files Browse the repository at this point in the history
Fix-fe: 로그인 에러 해결 (#941)
  • Loading branch information
lurgi authored Oct 25, 2024
1 parent fc9d8f5 commit 08d41b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/hooks/apply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ import { routes } from '@router/path';
import QUERY_KEYS from './queryKeys';

const useGetRecruitmentInfo = ({ applyFormId }: { applyFormId: string }) => {
const TEN_MINUTE = 1000 * 60 * 10;
const queryObj = useQuery({
queryKey: [QUERY_KEYS.RECRUITMENT_INFO, applyFormId],
queryFn: () => applyApis.get({ applyFormId }),
staleTime: 1000 * 60 * 10, // 10 minutes
staleTime: TEN_MINUTE,
gcTime: TEN_MINUTE,
});

return queryObj;
Expand Down
1 change: 1 addition & 0 deletions frontend/src/router/AppRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export default function AppRouter() {
queries: {
throwOnError: true,
retry: 0,
gcTime: 0,
},
mutations: {
onError: (error) => {
Expand Down

0 comments on commit 08d41b8

Please sign in to comment.