MCPcopy Create free account
hub / github.com/TanStack/query / constructor

Method constructor

packages/vue-query/src/queryClient.ts:38–45  ·  view source on GitHub ↗
(config: QueryClientConfig = {})

Source from the content-addressed store, hash-verified

36
37export class QueryClient extends QC {
38 constructor(config: QueryClientConfig = {}) {
39 const vueQueryConfig = {
40 defaultOptions: config.defaultOptions,
41 queryCache: config.queryCache || new QueryCache(),
42 mutationCache: config.mutationCache || new MutationCache(),
43 }
44 super(vueQueryConfig)
45 }
46
47 isRestoring?: Ref<boolean> = ref(false)
48

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected