()
| 401 | } |
| 402 | |
| 403 | override reload(): boolean { |
| 404 | // We don't want to restart in-progress loads. |
| 405 | const {status} = untracked(this.state); |
| 406 | if (status === 'idle' || status === 'loading') { |
| 407 | return false; |
| 408 | } |
| 409 | |
| 410 | // Increment the request reload to trigger the `state` linked signal to switch us to `Reload` |
| 411 | this.extRequest.update(({request, reload}) => ({request, reload: reload + 1})); |
| 412 | return true; |
| 413 | } |
| 414 | |
| 415 | destroy(): void { |
| 416 | this.destroyed = true; |