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

Method constructor

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected