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

Function getDefaultState

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

Source from the content-addressed store, hash-verified

400}
401
402export function getDefaultState<
403 TData,
404 TError,
405 TVariables,
406 TOnMutateResult,
407>(): MutationState<TData, TError, TVariables, TOnMutateResult> {
408 return {
409 context: undefined,
410 data: undefined,
411 error: null,
412 failureCount: 0,
413 failureReason: null,
414 isPaused: false,
415 status: 'idle',
416 variables: undefined,
417 submittedAt: 0,
418 }
419}

Callers 2

#updateResultMethod · 0.90
constructorMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected