Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ optionalRemove
Method
optionalRemove
packages/query-core/src/query.ts:225–229 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
223
}
224
225
protected optionalRemove() {
226
if
(!this.observers.length && this.state.fetchStatus ===
'idle'
) {
227
this.#cache.remove(this)
228
}
229
}
230
231
setData(
232
newData: TData,
Callers
1
scheduleGc
Function · 0.45
Calls
1
remove
Method · 0.45
Tested by
no test coverage detected