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

Function getDefaultState

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

Source from the content-addressed store, hash-verified

408}
409
410export function getDefaultState<
411 TData,
412 TError,
413 TVariables,
414 TOnMutateResult,
415>(): MutationState<TData, TError, TVariables, TOnMutateResult> {
416 return {
417 context: undefined,
418 data: undefined,
419 error: null,
420 failureCount: 0,
421 failureReason: null,
422 isPaused: false,
423 status: 'idle',
424 variables: undefined,
425 submittedAt: 0,
426 }
427}

Callers 2

#updateResultMethod · 0.90
constructorMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected