MCPcopy Index your code
hub / github.com/angular/angular / update

Function update

packages/core/src/resource/resource.ts:140–142  ·  view source on GitHub ↗
(updateFn: (value: T) => T)

Source from the content-addressed store, hash-verified

138 private readonly isError = computed(() => this.status() === 'error');
139
140 update(updateFn: (value: T) => T): void {
141 this.set(updateFn(untracked(this.value)));
142 }
143
144 // Use a computed here to avoid triggering reactive consumers if the value changes while staying
145 // either defined or undefined.

Callers

nothing calls this directly

Calls 2

untrackedFunction · 0.90
setMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…