MCPcopy Create free account
hub / github.com/angular/angular / reload

Method reload

packages/core/src/resource/resource.ts:403–413  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 2

untrackedFunction · 0.90
updateMethod · 0.65

Tested by

no test coverage detected