Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ resetState
Method
resetState
packages/query-core/src/query.ts:264–266 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
262
}
263
264
get resetState(): QueryState<TData, TError> {
265
return
this.#initialState
266
}
267
268
reset(): void {
269
this.destroy()
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected