* 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
()
| 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 |
no test coverage detected