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

Method constructor

packages/query-core/src/queryClient.ts:71–78  ·  view source on GitHub ↗
(config: QueryClientConfig = {})

Source from the content-addressed store, hash-verified

69 #unsubscribeOnline?: () => void
70
71 constructor(config: QueryClientConfig = {}) {
72 this.#queryCache = config.queryCache || new QueryCache()
73 this.#mutationCache = config.mutationCache || new MutationCache()
74 this.#defaultOptions = config.defaultOptions || {}
75 this.#queryDefaults = new Map()
76 this.#mutationDefaults = new Map()
77 this.#mountCount = 0
78 }
79
80 mount(): void {
81 this.#mountCount++

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected