MCPcopy Index your code
hub / github.com/TanStack/query / optionalRemove

Method optionalRemove

packages/query-core/src/mutation.ts:155–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153 }
154
155 protected optionalRemove() {
156 if (!this.#observers.length) {
157 if (this.state.status === 'pending') {
158 this.scheduleGc()
159 } else {
160 this.#mutationCache.remove(this)
161 }
162 }
163 }
164
165 continue(): Promise<unknown> {
166 return (

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected