260722_01_ENH: 버그 수정 및 개선 사항 수정
This commit is contained in:
@@ -9,7 +9,18 @@ import { CtiConnectionSync } from "./CtiConnectionSync";
|
||||
export function AppProvider({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<JotaiProvider>
|
||||
<QueryProvider>
|
||||
<QueryProvider
|
||||
clientConfig={{
|
||||
defaultOptions: {
|
||||
// 개별 쿼리/뮤테이션에서 meta를 지정하지 않았을 때 적용되는 기본값.
|
||||
// 조회(GET)는 기본적으로 전역 로딩에서 제외하고, 화면을 막아야 하는
|
||||
// 실제 액션인 뮤테이션만 기본적으로 전역 로딩에 포함시킨다.
|
||||
// 전역 로딩이 필요한 조회는 해당 훅에서 meta: { ignoreGlobalLoading: false }로 opt-in한다.
|
||||
queries: { meta: { ignoreGlobalLoading: true } },
|
||||
mutations: { meta: { ignoreGlobalLoading: false } },
|
||||
},
|
||||
}}
|
||||
>
|
||||
<QueryLoadingSync />
|
||||
<CtiConnectionSync />
|
||||
<LoadingOverlayAdapter />
|
||||
|
||||
Reference in New Issue
Block a user