(counter: Number)
| 250 | } |
| 251 | |
| 252 | onReject(counter: Number) { |
| 253 | return (error: Error) => { |
| 254 | if (this.counter === counter) { |
| 255 | const onReject = this.props.onReject || defaultOptions.onReject |
| 256 | this.setError(error, () => onReject && onReject(error)) |
| 257 | } |
| 258 | return error |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | setData(data: T, callback?: () => void) { |
| 263 | this.mounted && |