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

Method continue

packages/query-core/src/mutation.ts:260–269  ·  view source on GitHub ↗

* Resumes a mutation that is currently paused or was restored from a * dehydrated, still-`pending` state. * * - If this mutation has an active retryer (it paused mid-attempt, e.g. due * to the network mode or scope-based queuing), its retryer is resumed. * - Otherwise, if the mutati

()

Source from the content-addressed store, hash-verified

258 * ```
259 */
260 continue(): Promise<unknown> {
261 return (
262 this.#retryer?.continue() ??
263 // continuing a mutation assumes that variables are set, mutation must have been dehydrated before.
264 // a settled mutation has no retryer to continue and must not run again
265 (this.state.status === 'pending'
266 ? this.execute(this.state.variables!)
267 : Promise.resolve())
268 )
269 }
270
271 /**
272 * Runs the mutation function for the given variables through a retryer, and

Callers 7

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

Calls 1

executeMethod · 0.95

Tested by

no test coverage detected