첫 커밋

This commit is contained in:
focp212@naver.com
2025-09-05 15:36:48 +09:00
commit 05238b04c1
825 changed files with 176358 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import { QueryClient } from '@tanstack/react-query';
const globalQueryClient = new QueryClient({
defaultOptions: {
queries: {
// 사용자에게 에러상태를 즉시 보여주기 위해 retry false로 지정
retry: false,
refetchOnWindowFocus: true,
throwOnError: true,
// suspense: true,
networkMode: 'always',
},
mutations: {
throwOnError: true,
networkMode: 'always',
},
},
});
export const getGlobalQueryClient = (): QueryClient => globalQueryClient;