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

Method continue

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

Source from the content-addressed store, hash-verified

163 }
164
165 continue(): Promise<unknown> {
166 return (
167 this.#retryer?.continue() ??
168 // continuing a mutation assumes that variables are set, mutation must have been dehydrated before.
169 // a settled mutation has no retryer to continue and must not run again
170 (this.state.status === 'pending'
171 ? this.execute(this.state.variables!)
172 : Promise.resolve())
173 )
174 }
175
176 async execute(variables: TVariables): Promise<TData> {
177 const onContinue = () => {

Callers 5

onFocusMethod · 0.80
onOnlineMethod · 0.80
runNextMethod · 0.80
resumePausedMutationsMethod · 0.80
mutation.test.tsxFile · 0.80

Calls 1

executeMethod · 0.95

Tested by

no test coverage detected