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

Method constructor

packages/query-core/src/queryCache.ts:143–146  ·  view source on GitHub ↗
(public config: QueryCacheConfig = {})

Source from the content-addressed store, hash-verified

141 #queries: QueryStore
142
143 constructor(public config: QueryCacheConfig = {}) {
144 super()
145 this.#queries = new Map<string, Query>()
146 }
147
148 /**
149 * Returns the existing `Query` instance for the given options' `queryKey`/`queryHash`, or

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected