File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,11 @@ import type {
2929} from '@tanstack/query-core'
3030
3131export class QueryClient extends QC {
32- constructor ( config : MaybeRefDeep < QueryClientConfig > = { } ) {
33- const unreffedConfig = cloneDeepUnref ( config )
34- const vueQueryConfig : QueryClientConfig = {
35- defaultOptions : unreffedConfig . defaultOptions ,
36- queryCache : unreffedConfig . queryCache || new QueryCache ( ) ,
37- mutationCache : unreffedConfig . mutationCache || new MutationCache ( ) ,
32+ constructor ( config : QueryClientConfig = { } ) {
33+ const vueQueryConfig = {
34+ defaultOptions : config . defaultOptions ,
35+ queryCache : config . queryCache || new QueryCache ( ) ,
36+ mutationCache : config . mutationCache || new MutationCache ( ) ,
3837 }
3938 super ( vueQueryConfig )
4039 }
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { QueryClient } from './queryClient'
55import { getClientKey } from './utils'
66import { setupDevtools } from './devtools/devtools'
77import type { QueryClientConfig } from '@tanstack/query-core'
8- import type { MaybeRefDeep } from './types'
98
109type ClientPersister = ( client : QueryClient ) => [ ( ) => void , Promise < void > ]
1110
@@ -16,7 +15,7 @@ interface CommonOptions {
1615}
1716
1817interface ConfigOptions extends CommonOptions {
19- queryClientConfig ?: MaybeRefDeep < QueryClientConfig >
18+ queryClientConfig ?: QueryClientConfig
2019}
2120
2221interface ClientOptions extends CommonOptions {
You can’t perform that action at this time.
0 commit comments