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

Method constructor

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected