()
| 232 | } |
| 233 | |
| 234 | cancel() { |
| 235 | const onCancel = this.props.onCancel || defaultOptions.onCancel |
| 236 | onCancel && onCancel() |
| 237 | this.counter++ |
| 238 | this.abortController.abort() |
| 239 | this.mounted && this.dispatch({ type: ActionTypes.cancel, meta: this.getMeta() }) |
| 240 | } |
| 241 | |
| 242 | onResolve(counter: Number) { |
| 243 | return (data: T) => { |
no test coverage detected