common query client 기본 옵션 공용화

This commit is contained in:
kyy committed 2026-05-12 13:49:51 +09:00
1 parent c0c5a23dc1
commit d371bd32c8
4 files changed
+16 -21

No files matched your search

+3 -7
View File
@@ -1,11 +1,7 @@
import { QueryClient } from "@tanstack/react-query";
import { queryClientDefaultOptions } from "../../../common/core/query/queryClient";
export const queryClient = new QueryClient({
defaultOptions: {
queries: {
staleTime: 30_000,
refetchOnWindowFocus: false,
retry: 1,
},
},
defaultOptions: queryClientDefaultOptions,
});