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:226–230 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
224
}
225
226
protected optionalRemove() {
227
if
(!this.observers.length && this.state.fetchStatus ===
'idle'
) {
228
this.#cache.remove(this)
229
}
230
}
231
232
setData(
233
newData: TData,
Callers
1
scheduleGc
Function · 0.45
Calls
1
remove
Method · 0.45
Tested by
no test coverage detected