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

Method optionalRemove

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

Source from the content-addressed store, hash-verified

220 }
221
222 protected optionalRemove() {
223 if (!this.observers.length && this.state.fetchStatus === 'idle') {
224 this.#cache.remove(this)
225 }
226 }
227
228 setData(
229 newData: TData,

Callers 1

scheduleGcFunction · 0.45

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected