(error: Error, callback?: () => void)
| 266 | } |
| 267 | |
| 268 | setError(error: Error, callback?: () => void) { |
| 269 | this.mounted && |
| 270 | this.dispatch( |
| 271 | { type: ActionTypes.reject, payload: error, error: true, meta: this.getMeta() }, |
| 272 | callback |
| 273 | ) |
| 274 | return error |
| 275 | } |
| 276 | |
| 277 | render() { |
| 278 | const { children, suspense } = this.props |