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

Method constructor

packages/query-core/src/mutationCache.ts:128–133  ·  view source on GitHub ↗
(public config: MutationCacheConfig = {})

Source from the content-addressed store, hash-verified

126 #mutationId: number
127
128 constructor(public config: MutationCacheConfig = {}) {
129 super()
130 this.#mutations = new Set()
131 this.#scopes = new Map()
132 this.#mutationId = 0
133 }
134
135 /**
136 * Creates a mutation and adds it to the cache.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected