(updateFn: (value: T) => T)
| 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. |