WritableSignal
interface
stablesince v17.0
A Signal with a value that can be mutated via a setter interface.
set
voidDirectly set the signal to a new value, and notify any dependents.
@paramvalue
T@returns
voidupdate
voidUpdate the value of the signal based on its current value, and notify any dependents.
@paramupdateFn
(value: T) => T@returns
voidasReadonly
Signal<T>Returns a readonly version of this signal. Readonly signals can be accessed to read their value but can't be changed using set or update methods. The readonly signals do not have any built-in mechanism that would prevent deep-mutation of their value.
@returns
Signal<T>[SIGNAL]
unknownJump to details