MCPcopy Index your code
hub / github.com/TanStack/query / getDefaultState

Function getDefaultState

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

Source from the content-addressed store, hash-verified

384}
385
386export function getDefaultState<
387 TData,
388 TError,
389 TVariables,
390 TOnMutateResult,
391>(): MutationState<TData, TError, TVariables, TOnMutateResult> {
392 return {
393 context: undefined,
394 data: undefined,
395 error: null,
396 failureCount: 0,
397 failureReason: null,
398 isPaused: false,
399 status: 'idle',
400 variables: undefined,
401 submittedAt: 0,
402 }
403}

Callers 2

#updateResultMethod · 0.90
constructorMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…