MCPcopy Create free account
hub / github.com/TanStack/query / #scheduleGcIfCached

Method #scheduleGcIfCached

packages/query-core/src/query.ts:951–959  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

949 }
950
951 #scheduleGcIfCached(): void {
952 if (
953 this.#cache.get<TQueryFnData, TError, TData, TQueryKey>(
954 this.queryHash,
955 ) === this
956 ) {
957 this.scheduleGc()
958 }
959 }
960
961 #dispatch(action: Action<TData, TError>): void {
962 const reducer = (

Callers 2

removeObserverMethod · 0.95
fetchMethod · 0.95

Calls 1

getMethod · 0.80

Tested by

no test coverage detected