MCPcopy
hub / github.com/angular/angular / reload

Method reload

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

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 2

untrackedFunction · 0.90
updateMethod · 0.65

Tested by

no test coverage detected