Skip to content

Commit

Permalink
Merge pull request #192 from Team-Lecue/hotfix/refetchOnWindowFocus
Browse files Browse the repository at this point in the history
[Hotfix] refetchOnWindowFocus Error Fix
  • Loading branch information
jungwoo3490 authored Jan 18, 2024
2 parents 57223c0 + 0bc7612 commit 40128a8
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Detail/hooks/useGetBookDetail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default function useGetBookDetail(bookUuid: string) {
onError: () => {
navigate('/error');
},
refetchOnWindowFocus: false,
},
);

Expand Down
1 change: 1 addition & 0 deletions src/Home/hooks/useGetLecueBook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const useGetLecueBook = () => {
queryKey: ['get-lecue-book'],
queryFn: () => getLecueBook(),
onError: () => navigate('/error'),
refetchOnWindowFocus: false,
});

return { isLoading, data };
Expand Down
1 change: 1 addition & 0 deletions src/LecueNote/hooks/useGetPresignedUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const useGetPresignedUrl = () => {
queryKey: ['get-presigned-url'],
queryFn: () => getPresignedUrl(),
onError: () => navigate('/error'),
refetchOnWindowFocus: false,
});

return { isLoading, data };
Expand Down
1 change: 1 addition & 0 deletions src/Mypage/hooks/useGetMyBookList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default function useGetMyBookList() {
onError: () => {
navigate('/error');
},
refetchOnWindowFocus: false,
},
);

Expand Down
1 change: 1 addition & 0 deletions src/Mypage/hooks/useGetMyNickname.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default function useGetMyNickName() {
onError: () => {
navigate('/error');
},
refetchOnWindowFocus: false,
},
);

Expand Down
1 change: 1 addition & 0 deletions src/Mypage/hooks/useGetMyNoteList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default function useGetNoteList() {
onError: () => {
navigate('/error');
},
refetchOnWindowFocus: false,
},
);

Expand Down
1 change: 1 addition & 0 deletions src/Splash/hook/useGetNoteNum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const useGetNoteNum = () => {
queryKey: ['get-note-num'],
queryFn: () => getNoteNum(),
onError: () => navigate('/error'),
refetchOnWindowFocus: false,
});

return { isLoading, data };
Expand Down
1 change: 1 addition & 0 deletions src/StickerPack/hooks/useGetBookUuid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default function useGetBookUuid(bookId: number) {
onError: () => {
navigate('/error');
},
refetchOnWindowFocus: false,
},
);

Expand Down
1 change: 1 addition & 0 deletions src/StickerPack/hooks/useGetStickerPack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default function useGetStickerPack(bookId: number) {
onError: () => {
navigate('/error');
},
refetchOnWindowFocus: false,
},
);

Expand Down
1 change: 1 addition & 0 deletions src/Target/hooks/useGetPresignedUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const useGetPresignedUrl = () => {
queryKey: ['get-presigned-url'],
queryFn: () => getPresignedUrl(),
onError: () => navigate('/error'),
refetchOnWindowFocus: false,
});

return { isLoading, data };
Expand Down

0 comments on commit 40128a8

Please sign in to comment.