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

Method setOptions

packages/query-core/src/mutation.ts:116–122  ·  view source on GitHub ↗
(
    options: MutationOptions<TData, TError, TVariables, TOnMutateResult>,
  )

Source from the content-addressed store, hash-verified

114 }
115
116 setOptions(
117 options: MutationOptions<TData, TError, TVariables, TOnMutateResult>,
118 ): void {
119 this.options = options
120
121 this.updateGcTime(this.options.gcTime)
122 }
123
124 get meta(): MutationMeta | undefined {
125 return this.options.meta

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected