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

Method constructor

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

Source from the content-addressed store, hash-verified

86 #unsubscribeOnline?: () => void
87
88 constructor(config: QueryClientConfig = {}) {
89 this.#queryCache = config.queryCache || new QueryCache()
90 this.#mutationCache = config.mutationCache || new MutationCache()
91 this.#defaultOptions = config.defaultOptions || {}
92 this.#queryDefaults = new Map()
93 this.#mutationDefaults = new Map()
94 this.#mountCount = 0
95 }
96
97 /**
98 * Called by a framework adapter's `QueryClientProvider`-equivalent when it mounts, to start

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected