WritableSignal
interface
A Signal
with a value that can be mutated via a setter interface.
API
interface WritableSignal<T> extends Signal<T> {}
set
void
Directly set the signal to a new value, and notify any dependents.
@paramvalue
T
@returns
void
update
void
Update the value of the signal based on its current value, and notify any dependents.
@paramupdateFn
(value: T) => T
@returns
void
Jump to details