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