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

Method has

packages/query-core/src/mutationCache.ts:216–218  ·  view source on GitHub ↗

* Checks whether this cache still holds the given mutation. * @internal * @param mutation - The mutation to check. * @returns Whether the mutation is in the cache.

(mutation: Mutation<any, any, any, any>)

Source from the content-addressed store, hash-verified

214 * @returns Whether the mutation is in the cache.
215 */
216 has(mutation: Mutation<any, any, any, any>): boolean {
217 return this.#mutations.has(mutation)
218 }
219
220 /**
221 * Checks whether a mutation can run now, given the other mutations in its `scope`.

Callers 15

isDeclaredInNodeFunction · 0.80
getExternalRefsFunction · 0.80
isTargetFunctionFunction · 0.80
resolveQueryClientSourceFunction · 0.80
isQueryResultTypeFunction · 0.80
willUpdateMethod · 0.80
shouldDehydrateQueryFunction · 0.80
createSearchTextFunction · 0.80

Calls

no outgoing calls

Tested by 1

resizeRowFunction · 0.64