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:265–267 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
263
}
264
265
get resetState(): QueryState<TData, TError> {
266
return
this.#initialState
267
}
268
269
reset(): void {
270
this.destroy()
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected