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