MCPcopy Create free account
hub / github.com/TanStack/query / resetState

Method resetState

packages/query-core/src/query.ts:452–454  ·  view source on GitHub ↗

* The state the query was created with. * @internal * @returns The state the query had when it was first created, used by Query#reset.

()

Source from the content-addressed store, hash-verified

450 * @returns The state the query had when it was first created, used by {@link Query#reset}.
451 */
452 get resetState(): QueryState<TData, TError> {
453 return this.#initialState
454 }
455
456 /**
457 * Resets the query back to its initial state (the state it had when it was

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected