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

Function getDefaultState

packages/query-core/src/mutation.ts:518–535  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

516}
517
518export function getDefaultState<
519 TData,
520 TError,
521 TVariables,
522 TOnMutateResult,
523>(): MutationState<TData, TError, TVariables, TOnMutateResult> {
524 return {
525 context: undefined,
526 data: undefined,
527 error: null,
528 failureCount: 0,
529 failureReason: null,
530 isPaused: false,
531 status: 'idle',
532 variables: undefined,
533 submittedAt: 0,
534 }
535}

Callers 2

#updateResultMethod · 0.90
constructorMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected