()
| 382 | } |
| 383 | |
| 384 | override reload(): boolean { |
| 385 | // We don't want to restart in-progress loads. |
| 386 | const {status} = untracked(this.state); |
| 387 | if (status === 'idle' || status === 'loading') { |
| 388 | return false; |
| 389 | } |
| 390 | |
| 391 | // Increment the request reload to trigger the `state` linked signal to switch us to `Reload` |
| 392 | this.extRequest.update(({request, reload}) => ({request, reload: reload + 1})); |
| 393 | return true; |
| 394 | } |
| 395 | |
| 396 | destroy(): void { |
| 397 | this.destroyed = true; |